-
Notifications
You must be signed in to change notification settings - Fork 12.8k
ES2023
missing for target
in docs?
#56303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is a bit confusing - the error message is auto-generated from the set of possible values that the parser knows about. Today While we're at it, we should remove |
@RyanCavanaugh note there are two bugs then. The error message from the parser + the docs issue on https://www.typescriptlang.org/tsconfig. Aside: Now that I understand the ts error seen in VS Code comes from the actual parser, it becomes weird in VS Code that they both print warnings and capitalization is different. But that is because VS Code shows both errors from the ts parser as well the json schema from the schemastore. But it always bugged me they are capitalized differently as seen above. Even more confusing is that it is capitalized differently in your own TypeScript docs compared to the ts parser output: |
I’ve always thought the all-lowercase variants were canonical, fwiw. I assume the camel-case versions probably originate from the TS source since there’s an enum for it. Though I guess ultimately the tsconfig parser doesn’t care about the capitalization.
Wait, that doesn’t seem right. When I was working with the compiler API |
Oh, I got messed up, ignore almost everything up there. OP is confusing |
@RyanCavanaugh it could be labeled as confusion, but frankly how would one know reading this? https://www.typescriptlang.org/tsconfig#target
Having Googled and looked around, there is a large amount of confusion around these settings as seen by SO questions etc. Could the above |
New runtime methods (i.e. things that can be polyfilled) are not syntactic features.
You can. Did you try it? |
@RyanCavanaugh By what definition? The top 10 Google results for
Regarding:
I did try. But the core of the problem is this:
I would suspect many users e.g. know they want to support Why not just include I could try to submit a PR to improve the docs of |
I'm trying to give you a definition. A new method is not a syntax. Doc improvements always welcomed. |
This issue has been marked as "Question" and has seen no recent activity. It has been automatically closed for house-keeping purposes. |
I will give it a try soon. |
Acknowledgement
Comment
Caveat: I am not entirely sure where these faults stem from, but they have existed for some time and causes confusion for users. I am starting here.
From: https://www.typescriptlang.org/tsconfig
es2023
is missing fortarget
(but it should exist, see Add Array.prototype.findLast() and Array.prototype.findLastIndex() #49636)If we use VS Code it reports that it cannot be used:
But https://json.schemastore.org/tsconfig has it.
I have no idea where the fault in VS Code comes from as it is/should be checking https://json.schemastore.org/tsconfig, and I also do not know why it was not included on From: https://www.typescriptlang.org/tsconfig.
It is possible I should split this up in more than one bug report, if this is a bug.
The text was updated successfully, but these errors were encountered: