-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Typo in TS1355 error message #62464
Copy link
Copy link
Labels
Help WantedYou can do thisYou can do thisPossible ImprovementThe current behavior isn't wrong, but it's possible to see that it might be better in some casesThe current behavior isn't wrong, but it's possible to see that it might be better in some cases
Milestone
Metadata
Metadata
Assignees
Labels
Help WantedYou can do thisYou can do thisPossible ImprovementThe current behavior isn't wrong, but it's possible to see that it might be better in some casesThe current behavior isn't wrong, but it's possible to see that it might be better in some cases
🔎 Search Terms
"A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals.", "TS1355"
🕗 Version & Regression Information
⏯ Playground Link
No response
💻 Code
// Your code here🙁 Actual behavior
Error reads "A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."
🙂 Expected behavior
Error should read "A 'const' assertion can only be applied to references to enum members, or string, number, boolean, array, or object literals."
Additional information about the issue
The text of TypeScript error TS1355 is:
A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals.Note "assertion_s_", plural. Since it's referring to a singular assertion, the text should be:
A 'const' assertion can only be applied to references to enum members, or string, number, boolean, array, or object literals.