mirror of
https://github.com/SrIzan10/handler.git
synced 2026-05-01 10:45:17 +00:00
8 lines
176 B
TypeScript
8 lines
176 B
TypeScript
export type UnionToTuple<T> = T extends readonly [infer V, infer S]
|
|
? V extends V
|
|
? S extends S
|
|
? [V, S]
|
|
: [V]
|
|
: never
|
|
: never;
|