From 0910438c4730242b1a7300e9edfa781f9757a1e6 Mon Sep 17 00:00:00 2001 From: thinkasany <480968828@qq.com> Date: Fri, 19 Sep 2025 00:12:56 +0800 Subject: [PATCH] type: improve semantic type --- src/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index ae9a0e9..875bd49 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -25,8 +25,8 @@ interface SwitchProps loadingIcon?: React.ReactNode; style?: React.CSSProperties; title?: string; - styles?: { content: React.CSSProperties }; - classNames?: { content: string }; + styles?: { content?: React.CSSProperties }; + classNames?: { content?: string }; } const Switch = React.forwardRef(