diff --git a/packages/typescript-estree/src/ts-estree/ts-nodes.ts b/packages/typescript-estree/src/ts-estree/ts-nodes.ts index 010f6b2619d..354d4ce21d5 100644 --- a/packages/typescript-estree/src/ts-estree/ts-nodes.ts +++ b/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; export type TSNode =