-
Notifications
You must be signed in to change notification settings - Fork 13k
Description
π 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
- This is the behavior in every version I tried, and I reviewed the FAQ for entries about error messages and typos
β― 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.