Skip to content

Commit 6e475be

Browse files
committed
fix: switch typing
1 parent f99e21d commit 6e475be

File tree

1 file changed

+3
-3
lines changed
  • src/components/primitives/Switch

1 file changed

+3
-3
lines changed

src/components/primitives/Switch/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import type { SwitchProps } from 'react-native';
2-
import type { StyledProps } from '../../../theme/types';
32

43
import type { CustomProps, ResponsiveValue } from '../../../components/types';
54
import type { ISizes } from '../../../theme/base/sizes';
65
import type { IColors } from '../../../theme/base/colors';
6+
import type { InterfaceBoxProps } from '../Box';
77

88
export interface InterfaceSwitchProps
99
extends Omit<SwitchProps, 'tintColor'>,
10-
StyledProps {
10+
InterfaceBoxProps<ISwitchProps> {
1111
/**
1212
* The size (width and height) of the switch.
1313
* @default md
@@ -28,7 +28,7 @@ export interface InterfaceSwitchProps
2828
/**
2929
* Function called when the state of the Switch changes.
3030
*/
31-
onToggle?: () => any;
31+
onToggle?: (...args: any) => void;
3232
/**
3333
* If true, set the Switch to the checked state.
3434
*/

0 commit comments

Comments
 (0)