Skip to content

Commit

Permalink
chore: fix type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Feb 24, 2024
1 parent d79bcad commit dbeb73b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/script/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import type {
VSlotScopeExpression,
OffsetRange,
VGenericExpression,
ESLintClassExpression,
} from "../ast"
import { ParseError } from "../ast"
import { debug } from "../common/debug"
Expand Down Expand Up @@ -1288,8 +1287,8 @@ export function parseGenericExpression(
const { ast } = result
const statement = ast.body[0] as ESLintExpressionStatement
const rawExpression = statement.expression as ESLintUnaryExpression
const classDecl = rawExpression.argument as ESLintClassExpression
const typeParameters = (classDecl as TSESTree.ClassExpression)
const classDecl = rawExpression.argument as ESLintFunctionExpression
const typeParameters = (classDecl as TSESTree.FunctionExpression)
.typeParameters
return typeParameters?.params
}
Expand Down

0 comments on commit dbeb73b

Please sign in to comment.