6 lines
401 B
TypeScript
6 lines
401 B
TypeScript
import type { Ref, UnwrapRef } from 'vue';
|
|
export type Updater<State> = (prev: State) => State;
|
|
export declare function useLayoutState<State>(defaultState: State): [Ref<State>, (updater: Updater<State>) => void];
|
|
/** Lock frame, when frame pass reset the lock. */
|
|
export declare function useTimeoutLock<State>(defaultState?: State): [(state: UnwrapRef<State>) => void, () => UnwrapRef<State> | null];
|