UNPKG

@aplus-frontend/antdv

Version:

Vue basic component library maintained based on ant-design-vue

5 lines (4 loc) 227 B
import type { Ref } from 'vue'; type Updater<T> = (prev: T) => T; export default function useSyncState<T>(defaultState: T, onChange: (newValue: T, prevValue: T) => void): [Ref<T>, (updater: T | Updater<T>) => void]; export {};