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): ts.NamedTupleMember workaround for <TS4.0 #2405

Merged
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
8 changes: 8 additions & 0 deletions packages/typescript-estree/src/ts-estree/ts-nodes.ts
@@ -1,5 +1,13 @@
import * as ts from 'typescript';

// Workaround for
// https://github.com/typescript-eslint/typescript-eslint/issues/2388
// to support both TypeScript 3.9 & 4:
declare module 'typescript' {
// eslint-disable-next-line @typescript-eslint/no-empty-interface
export interface NamedTupleMember extends ts.Node {}
}

export type TSToken = ts.Token<ts.SyntaxKind>;

export type TSNode =
Expand Down