import { type Str } from "https://deno.land/x/rimbu@0.13.5/typical/mod.ts";
const { NonEmptyString } = Str;
Returns never if the given string is empty, otherwise the given string.
Examples
Example 1
Example 1
NonEmptyString<''> => never
NonEmptyString<'abc'> => 'abc'
definition: "" extends S ? never : unknown