useFrame.d.ts 409 B

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