From 3330d9de8df83177bf526422ab732139051f29f8 Mon Sep 17 00:00:00 2001 From: Tyh2001 <1469442737@qq.com> Date: Thu, 14 Dec 2023 19:26:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fighting-design/_utils/is/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fighting-design/_utils/is/index.ts b/packages/fighting-design/_utils/is/index.ts index 4f65142281..0f9cafe2d3 100644 --- a/packages/fighting-design/_utils/is/index.ts +++ b/packages/fighting-design/_utils/is/index.ts @@ -7,7 +7,7 @@ const { toString } = Object.prototype * @returns { boolean } 这个值是否为传入的类型 */ const is = (type: string) => { - return (value: T): value is T => { + return (value: unknown): boolean => { return toString.call(value) === `[object ${type}]` } }