Skip to content

Commit c3da088

Browse files
authored
Update union_to_array_union.ts
1 parent 0956b4a commit c3da088

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/type/union_to_array_union.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
/**
2-
* This type
2+
* This type creates an array of each type in the Union.
3+
*
4+
* @template Type The type of the union from which to create a new array type
35
*/
6+
// deno-lint-ignore no-explicit-any
47
export type UnionToArrayUnion<Type> = Type extends any ? Type[] : never;

0 commit comments

Comments
 (0)