Skip to content

Commit 0956b4a

Browse files
authored
Create union_to_array_union.ts
1 parent 667e0ee commit 0956b4a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/type/union_to_array_union.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
* This type
3+
*/
4+
export type UnionToArrayUnion<Type> = Type extends any ? Type[] : never;

0 commit comments

Comments
 (0)