@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 SplitLiteralToUnion<T extends string, SplitBy extends string> = TupleToUnion<SplitLiteral<T, SplitBy>>;
References: TupleToUnion, SplitLiteral