@tempots/std
SplitLiteralToUnion type
Converts a string literal type T
into a union type by splitting it using the specified delimiter SplitBy
.
Signature:
export type SplitLiteralToUnionextends string, SplitBy extends string> = TupleToUnion<SplitLiteralSplitBy>>;
References: TupleToUnion, SplitLiteral