-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Description
Prettier 2.8.3
Playground link
--parser babel
Input:
module.exports = /** @satisfies {Record<string, string>} */ ({
hello: 1337,
});
Output:
module.exports = /** @satisfies {Record<string, string>} */ {
hello: 1337,
};
Expected behavior:
Keep those parentheses to not break intellisense.
module.exports = /** @satisfies {Record<string, string>} */ ({
hello: 1337,
});
Here is an example of using @satisfies
jsdoc. microsoft/TypeScript#51753
kachkaev and kfirfitousi
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