File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ import type {
3232 VSlotScopeExpression ,
3333 OffsetRange ,
3434 VGenericExpression ,
35- ESLintClassExpression ,
3635} from "../ast"
3736import { ParseError } from "../ast"
3837import { debug } from "../common/debug"
@@ -1288,8 +1287,8 @@ export function parseGenericExpression(
12881287 const { ast } = result
12891288 const statement = ast . body [ 0 ] as ESLintExpressionStatement
12901289 const rawExpression = statement . expression as ESLintUnaryExpression
1291- const classDecl = rawExpression . argument as ESLintClassExpression
1292- const typeParameters = ( classDecl as TSESTree . ClassExpression )
1290+ const classDecl = rawExpression . argument as ESLintFunctionExpression
1291+ const typeParameters = ( classDecl as TSESTree . FunctionExpression )
12931292 . typeParameters
12941293 return typeParameters ?. params
12951294 }
You can’t perform that action at this time.
0 commit comments