nicecode-v2/packages/meta/lib/_util/hooks/useSyncState.d.ts

4 lines
162 B
TypeScript

type UseSyncStateProps<T> = readonly [() => T, (newValue: T) => void];
export default function useSyncState<T>(initialValue: T): UseSyncStateProps<T>;
export {};