amis-rpc-design/node_modules/antd/lib/_util/hooks/useSyncState.d.ts

4 lines
162 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
type UseSyncStateProps<T> = readonly [() => T, (newValue: T) => void];
export default function useSyncState<T>(initialValue: T): UseSyncStateProps<T>;
export {};