Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dbeb73b

Browse filesBrowse files
committed
chore: fix type annotation
1 parent d79bcad commit dbeb73b
Copy full SHA for dbeb73b

File tree

1 file changed

+2
-3
lines changed
Filter options

1 file changed

+2
-3
lines changed

‎src/script/index.ts

Copy file name to clipboardExpand all lines: src/script/index.ts
+2-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.