Content-Length: 821 | pFad | http://github.com/typescript-eslint/typescript-eslint/pull/10024.patch
thub.com From 190d1073d18e4bee3abd41781a07a85d81d50004 Mon Sep 17 00:00:00 2001 From: Brian Donovan <1938+eventualbuddha@users.noreply.github.com> Date: Thu, 19 Sep 2024 16:07:42 -0700 Subject: [PATCH] fix(types): add `NewExpression` as a parent of `SpreadElement` `new` expressions may contain a spread, e.g. `new Array(...[])`. --- packages/types/src/ts-estree.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/types/src/ts-estree.ts b/packages/types/src/ts-estree.ts index 15d5204940ac..9656ea011dc7 100644 --- a/packages/types/src/ts-estree.ts +++ b/packages/types/src/ts-estree.ts @@ -138,6 +138,7 @@ declare module './generated/ast-spec' { parent: | TSESTree.ArrayExpression | TSESTree.CallExpression + | TSESTree.NewExpression | TSESTree.ObjectExpression; }Fetched URL: http://github.com/typescript-eslint/typescript-eslint/pull/10024.patch
Alternative Proxies: