Closed
Description
openedon Aug 15, 2020
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment