amis-rpc-design/node_modules/rc-tabs/lib/hooks/useSyncState.d.ts
2023-10-07 19:42:30 +08: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 {};