-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat: support TS 5.3 #7968
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
feat: support TS 5.3 #7968
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,9 @@ import type * as ts from 'typescript'; | |
// Eg: https://github.com/typescript-eslint/typescript-eslint/issues/2388, https://github.com/typescript-eslint/typescript-eslint/issues/2784 | ||
/* eslint-disable @typescript-eslint/ban-ts-comment, @typescript-eslint/prefer-ts-expect-error, @typescript-eslint/no-empty-interface */ | ||
declare module 'typescript' { | ||
// @ts-ignore - added in TS 4.5 | ||
/** @ts-ignore - added in TS 4.5, deprecated and converted to a type-alias in TS 5.3 */ | ||
export interface AssertClause extends ts.Node {} | ||
// @ts-ignore - added in TS 4.5 | ||
/** @ts-ignore - added in TS 4.5, deprecated and converted to a type-alias in TS 5.3 */ | ||
export interface AssertEntry extends ts.Node {} | ||
Comment on lines
+7
to
10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a problem for us. We don't get this error locally because we use Note that this blocks the full support. |
||
// added in TS 4.9 | ||
export interface SatisfiesExpression extends ts.Node {} | ||
|
@@ -25,6 +25,10 @@ export type TSNode = | |
| ts.Identifier | ||
| ts.ImportAttribute | ||
| ts.ImportAttributes | ||
/* eslint-disable-next-line deprecation/deprecation, @typescript-eslint/no-duplicate-type-constituents -- intentional for old TS versions */ | ||
| ts.AssertClause | ||
/* eslint-disable-next-line deprecation/deprecation, @typescript-eslint/no-duplicate-type-constituents -- intentional for old TS versions */ | ||
| ts.AssertEntry | ||
| ts.PrivateIdentifier | ||
| ts.QualifiedName | ||
| ts.ComputedPropertyName | ||
|
Uh oh!
There was an error while loading. Please reload this page.