From dbeb73ba8186a3f9e23d47da0d98baeb718f5c01 Mon Sep 17 00:00:00 2001 From: ota-meshi Date: Sat, 24 Feb 2024 18:00:24 +0900 Subject: [PATCH] chore: fix type annotation --- src/script/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/script/index.ts b/src/script/index.ts index a0e620c..b05b2c6 100644 --- a/src/script/index.ts +++ b/src/script/index.ts @@ -32,7 +32,6 @@ import type { VSlotScopeExpression, OffsetRange, VGenericExpression, - ESLintClassExpression, } from "../ast" import { ParseError } from "../ast" import { debug } from "../common/debug" @@ -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 }