useLayoutState.d.ts 254 B

123456
  1. import type { Ref } from 'vue';
  2. export type Updater<State> = (prev: State) => State;
  3. /**
  4. * Execute code before next frame but async
  5. */
  6. export declare function useLayoutState<State>(defaultState: State): [Ref<State>, (updater: Updater<State>) => void];