UNPKG

@cainiaofe/cn-ui-m

Version:
9 lines (8 loc) 283 B
import { SetStateAction } from 'react'; interface Options<T> { value?: T; defaultValue: T; onChange?: (v: T) => void; } export declare function usePropsValue<T>(options: Options<T>): readonly [T, (this: any, v: SetStateAction<T>, forceTrigger?: any) => void]; export {};