Skip to content

Commit 64ef284

Browse files
authored
type: improve semantic type (#162)
1 parent 8e2a585 commit 64ef284

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ interface SwitchProps
2525
loadingIcon?: React.ReactNode;
2626
style?: React.CSSProperties;
2727
title?: string;
28-
styles?: { content: React.CSSProperties };
29-
classNames?: { content: string };
28+
styles?: { content?: React.CSSProperties };
29+
classNames?: { content?: string };
3030
}
3131

3232
const Switch = React.forwardRef<HTMLButtonElement, SwitchProps>(

0 commit comments

Comments
 (0)