From ee608e39ec8baf4fa0f88362e7caddaab2e17611 Mon Sep 17 00:00:00 2001 From: warmthsea <2586244885@qq.com> Date: Tue, 21 May 2024 15:25:56 +0800 Subject: [PATCH] chore: remove ts-nocheck comments in virtual-list --- packages/components/virtual-list/src/hooks/use-wheel.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/components/virtual-list/src/hooks/use-wheel.ts b/packages/components/virtual-list/src/hooks/use-wheel.ts index 5c70c0eeb356f..6ec2c6f7c7542 100644 --- a/packages/components/virtual-list/src/hooks/use-wheel.ts +++ b/packages/components/virtual-list/src/hooks/use-wheel.ts @@ -1,4 +1,3 @@ -// @ts-nocheck import { cAF, isFirefox, rAF } from '@element-plus/utils' import { HORIZONTAL, VERTICAL } from '../defaults' @@ -8,7 +7,7 @@ import type { LayoutDirection } from '../types' const LayoutKeys = { [HORIZONTAL]: 'deltaX', [VERTICAL]: 'deltaY', -} +} as const interface ListWheelState { atStartEdge: ComputedRef // exclusive to reachEnd