Skip to content
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

fix(typescript-estree): fix TSNode type error on old ts versions #7267

Merged
merged 1 commit into from Jul 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 2 additions & 7 deletions packages/typescript-estree/src/ts-estree/ts-nodes.ts
Expand Up @@ -4,18 +4,13 @@ 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/no-empty-interface */
declare module 'typescript' {
// added in TS 4.0
export interface NamedTupleMember extends ts.Node {}
// added in TS 4.1
export interface TemplateLiteralTypeNode extends ts.Node {}
// added in TS 4.3
export interface PrivateIdentifier extends ts.Node {}
export interface ClassStaticBlockDeclaration extends ts.Node {}
// added in TS 4.5
export interface AssertClause extends ts.Node {}
export interface AssertEntry extends ts.Node {}
// added in TS 4.9
export interface SatisfiesExpression extends ts.Node {}
// added in TS 5.1
export interface JsxNamespacedName extends ts.Node {}
}
/* eslint-enable @typescript-eslint/no-empty-interface */

Expand Down