Type alias charset<T>

charset<T>: T extends `${infer C extends string}${infer R extends string}`
    ? C | charset<R>
    : T extends ""
        ? never
        : T

Splits T to the union of chars. If T is an empty string, it resolves to never.

Type Parameters

  • T extends string