UNPKG

@aplus-frontend/antdv

Version:

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

7 lines (6 loc) 254 B
import type { Ref } from 'vue'; export type Updater<State> = (prev: State) => State; /** * Execute code before next frame but async */ export declare function useLayoutState<State>(defaultState: State): [Ref<State>, (updater: Updater<State>) => void];