1234567891011121314151617 |
- type Updater<T> = T | ((prevValue: T) => T);
- export type SetState<T> = (nextValue: Updater<T>,
- ignoreDestroy?: boolean) => void;
- export declare function useSafeState<T>(defaultValue?: T | (() => T)): [T, SetState<T>];
- export {};
|