first commit
This commit is contained in:
8
frontend/node_modules/rc-tabs/lib/hooks/useUpdate.d.ts
generated
vendored
Normal file
8
frontend/node_modules/rc-tabs/lib/hooks/useUpdate.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Help to merge callback with `useLayoutEffect`.
|
||||
* One time will only trigger once.
|
||||
*/
|
||||
export default function useUpdate(callback: VoidFunction): () => void;
|
||||
type Callback<T> = (ori: T) => T;
|
||||
export declare function useUpdateState<T>(defaultState: T | (() => T)): [T, (updater: Callback<T>) => void];
|
||||
export {};
|
||||
Reference in New Issue
Block a user