-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
TypeScript 5.0 Support #6380
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
After upgrading to ts 5.0-beta, I found this error:
Is there some breaks in the config parsing? We use "extends" to inherit strict flag from shared config. Update: I found it still happens even if I'm not updating TypeScript, only eslint stuff. |
@Jack-Works https://typescript-eslint.io/maintenance/versioning#typescript If something has broken, then that's probably due to an undocumented change in their release, which we'll address before the full 5.0 release. |
I'm not sure about "no impact on us" for "bundler" --moduleResolution setting. I got this error After adding the suggested configuration setting for typescript: |
@bcowgill please read my previous comment. |
@bradzacher @JoshuaKGoldberg Are you planning to work on this soon? If you are busy, can I work on this? |
@sosukesuzuki feel free to raise PRs! |
https://devblogs.microsoft.com/typescript/announcing-typescript-5-0-rc/
This issue is just to track all of the new features and their implementation state in this project.
As with all releases, we will not necessarily to support all features until closer to the full release when everything the features are stabilised.
Please be patient.
✅ Decorators
We'll need to review the new decorators version to double check if there are any syntax differences.
From the looks of it we're missing support for at least this new valid syntax:
✅
const
Type Parameters (#6600)This will require AST changes
✅
--verbatimModuleSyntax
This new flag doesn't actually impact us, but we will want to create a new lint rule to help people write "good" code with this flag on.
With the flag, this is the transpilation behaviour:
Based on discussions - it's clear that most people won't actually want this behaviour, so we'll want a lint rule that warns against import declarations that only contain inline type qualified specifiers.
#6382 has been raised separately to track this
✅ API Breaking Changes
We will need to audit our codebase for breakages and fix them as necessary.
✅
lib.d.ts
UpdatesWe will need to regenerate our types within
scope-manager
.Other changes with no impact to us
extends
enum
s Are Unionenum
s--moduleResolution bundler
allowImportingTsExtensions
resolvePackageJsonExports
resolvePackageJsonImports
allowArbitraryExtensions
customConditions
verbatimModuleSyntax
export type *
exportKind: 'type'
. Previously it was a TS semantic error, and it is no more.@satisfies
@overload
--build
switch
/case
Completions--experimentalDecorators
The text was updated successfully, but these errors were encountered: