UNPKG

@cran/vue.use

Version:

Cranberry Vue Use Utilities

6 lines (5 loc) 300 B
import type { UnwrapRef } from "@vue/runtime-dom"; export declare function useMachine<State extends string, Event extends string>(states: Record<State, Partial<Record<Event, State>>>, initial: State): { state: import("@vue/reactivity").Ref<UnwrapRef<State>>; next: (event: Event) => void; };