Skip to content

Commit 0956b4a

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

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/type/union_to_array_union.ts

+4
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)