Skip to content

Commit

Permalink
fix(typescript-estree): fix TSNode type error on old ts versions (#7267)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradzacher committed Jul 19, 2023
1 parent af77a1d commit f2aed1b
Showing 1 changed file with 2 additions and 7 deletions.
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

0 comments on commit f2aed1b

Please sign in to comment.