amis-rpc-design/node_modules/rc-tabs/lib/hooks/useSyncState.d.ts

4 lines
190 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
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 {};