UNPKG

@gzued/antd-compiled

Version:

Pre-bundled Ant Design 4.x and related dependencies for @gzued packages

9 lines (8 loc) 327 B
/** * Help to merge callback with `useLayoutEffect`. * One time will only trigger once. */ export default function useUpdate(callback: VoidFunction): () => void; declare type Callback<T> = (ori: T) => T; export declare function useUpdateState<T>(defaultState: T | (() => T)): [T, (updater: Callback<T>) => void]; export {};