Given a list of number literals and/or number subtype arrays, creates a typed, flattened array.
For example:
const x = makeNumberSubtypeArray(1, 2);type X = typeof x[0];const y = makeNumberSubtypeArray(x, 3);type Y = typeof y[0]; Copy
const x = makeNumberSubtypeArray(1, 2);type X = typeof x[0];const y = makeNumberSubtypeArray(x, 3);type Y = typeof y[0];
In the above example:
x
Array<1 | 2>
y
Array<1 | 2 | 3>
and so:
1 | 2
1 | 2 | 3
Given a list of number literals and/or number subtype arrays, creates a typed, flattened array.
For example:
In the above example:
x
isArray<1 | 2>
y
isArray<1 | 2 | 3>
and so:
1 | 2
1 | 2 | 3