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.
type Foo<T> = T extends any ? T[] : never type Bar = Foo<string | number | boolean>
Expected
Bar has type string[] | number[] | boolean[]
Bar
string[] | number[] | boolean[]
Actual
Bar has type string[] | number[] | true[] | false[]
string[] | number[] | true[] | false[]