We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0956b4a commit c3da088Copy full SHA for c3da088
src/type/union_to_array_union.ts
@@ -1,4 +1,7 @@
1
/**
2
- * This type
+ * 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
5
*/
6
+// deno-lint-ignore no-explicit-any
7
export type UnionToArrayUnion<Type> = Type extends any ? Type[] : never;
0 commit comments