UNPKG

ant-design-x-vue-next

Version:

Ant Design X for Vue — community continuation aligned with @ant-design/x

8 lines (7 loc) 321 B
import type { Ref, UnwrapRef } from 'vue'; export default function useMergedState<T, R = Ref<T>>(defaultStateValue: T | (() => T), option?: { defaultValue?: T | (() => T); value?: Ref<T> | Ref<UnwrapRef<T>>; onChange?: (val: T, prevValue: T) => void; postState?: (val: T) => T; }): [R, (val: T) => void];