Skip to content

Commit dbeb73b

Browse files
committed
chore: fix type annotation
1 parent d79bcad commit dbeb73b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/script/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ import type {
3232
VSlotScopeExpression,
3333
OffsetRange,
3434
VGenericExpression,
35-
ESLintClassExpression,
3635
} from "../ast"
3736
import { ParseError } from "../ast"
3837
import { 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
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy