From 5c582fcbe20bd64ca4bcbc47c4e46315b5b981b5 Mon Sep 17 00:00:00 2001 From: OweQian <1510106069@qq.com> Date: Sat, 14 Dec 2024 23:06:36 +0800 Subject: [PATCH] chore(Button): str type (#51521) Co-authored-by: afc163 --- components/button/buttonHelpers.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/button/buttonHelpers.tsx b/components/button/buttonHelpers.tsx index b0af751a5c..ff1648028f 100644 --- a/components/button/buttonHelpers.tsx +++ b/components/button/buttonHelpers.tsx @@ -15,7 +15,7 @@ export function convertLegacyProps( return { type }; } -export function isString(str: any): str is string { +export function isString(str: unknown): str is string { return typeof str === 'string'; }