File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ import type {
32
32
VSlotScopeExpression ,
33
33
OffsetRange ,
34
34
VGenericExpression ,
35
- ESLintClassExpression ,
36
35
} from "../ast"
37
36
import { ParseError } from "../ast"
38
37
import { debug } from "../common/debug"
@@ -1288,8 +1287,8 @@ export function parseGenericExpression(
1288
1287
const { ast } = result
1289
1288
const statement = ast . body [ 0 ] as ESLintExpressionStatement
1290
1289
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 )
1293
1292
. typeParameters
1294
1293
return typeParameters ?. params
1295
1294
}
You can’t perform that action at this time.
0 commit comments