UNPKG

@fruits-chain/react-native-xiaoshu

Version:
16 lines • 591 B
export interface Options<T> { defaultValue?: T; defaultValuePropName?: string; valuePropName?: string; trigger?: string; } export type Props = Record<string, any>; export interface StandardProps<T> { value: T; defaultValue?: T; onChange: (val: T) => void; } declare function useControllableValue<T = any>(props: StandardProps<T>): [T, (val: T) => void]; declare function useControllableValue<T = any>(props?: Props, options?: Options<T>): [T, (v: T, ...args: any[]) => void]; export default useControllableValue; //# sourceMappingURL=useControllableValue.d.ts.map