Closed
Description
TypeScript Version: 4.1.0-dev.20200807
Search Terms: conditional type tuple
Code
type Tuple<T> = [T extends null ? T? : T];
Expected behavior:
Expected the definition to work as expected.
Actual behavior:
Got the following error:
JSDoc types can only be used inside documentation comments.
Playground Link: Playground Link
Related Issues: Did not find anything close.