Support Typescript 5.0 const modifier on type parameters #260
Labels
enhancement
New feature or request
good first issue
Good for newcomers
typescript
TypeScript compatibility or extensions
Typescript 5.0 introduces a new "const" modifier for type parameters. Related PR: microsoft/TypeScript#51865
Where is the const type modifier allowed?
The const modifier is permitted on type parameters of functions, methods, and classes. It is an error to apply the const modifier to type parameters of interfaces and type aliases.
Would be great to have this in civet, as I already have some code that uses this new feature.
How to use this new feature in normal typescript with vscode?
npm install typescript@next
in any project, then select this specific typescript version in the bottom right of vscode, or directly add this to your vscode settings.json"typescript.tsdk": "node_modules/typescript/lib"
The text was updated successfully, but these errors were encountered: