PromoCursed/node_modules/rc-tabs/lib/hooks/useSyncState.d.ts
2024-08-20 23:25:37 +04:00

4 lines
190 B
TypeScript

type Updater<T> = (prev: T) => T;
export default function useSyncState<T>(defaultState: T, onChange: (newValue: T, prevValue: T) => void): [T, (updater: T | Updater<T>) => void];
export {};