-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug
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.
Metadata
Metadata
Assignees
Labels
Working as IntendedThe behavior described is the intended behavior; this is not a bugThe behavior described is the intended behavior; this is not a bug