import { type Str } from "https://deno.land/x/rimbu@1.1.0/typical/index.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