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 c3da088 commit 8682faeCopy full SHA for 8682fae
src/type/union_to_array_union.ts
@@ -1,6 +1,12 @@
1
/**
2
* This type creates an array of each type in the Union.
3
*
4
+ * @example
5
+ * ```ts
6
+ * type MyUnion = string | number | number[];
7
+ * type MyArray = UnionToArrayUnion<MyUnion>;
8
+ * // type MyArray = string[] | number[] | number[][];
9
+ * ```
10
* @template Type The type of the union from which to create a new array type
11
*/
12
// deno-lint-ignore no-explicit-any
0 commit comments