-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Allow parentheses when JSDoc to allow intellisense #14227
Copy link
Copy link
Closed
Labels
lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.status:needs discussionIssues needing discussion and a decision to be made before action can be takenIssues needing discussion and a decision to be made before action can be takentype:typecheckingIssues and PRs related to using TypeScript's JSDoc syntax to typecheck the codebaseIssues and PRs related to using TypeScript's JSDoc syntax to typecheck the codebase
Metadata
Metadata
Assignees
Labels
lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.status:needs discussionIssues needing discussion and a decision to be made before action can be takenIssues needing discussion and a decision to be made before action can be takentype:typecheckingIssues and PRs related to using TypeScript's JSDoc syntax to typecheck the codebaseIssues and PRs related to using TypeScript's JSDoc syntax to typecheck the codebase
Prettier 2.8.3
Playground link
Input:
Output:
Expected behavior:
Keep those parentheses to not break intellisense.
Here is an example of using
@satisfiesjsdoc. microsoft/TypeScript#51753