Skip to content

leaseModel

const leaseModel: StateMachine<never, { type: string; }, {[key: string]: AnyActor; }, "free" | "held", string, unknown, { }, { type: string; }, never, object & object, Record<string, (…args) => void | { children?: any; context?: any; }>, Record<string, AnyActorLogic>, Record<string, Function>, Record<string, number | Function>, never, never> & object & MachineIdentity<{ id: "arona/lease"; initial: "free"; states: { free: { on: { acquire: { target: "held"; }; }; }; held: { on: { acquire: { target: "held"; }; expire: { target: "free"; }; release: { target: "free"; }; renew: { target: "held"; }; }; }; }; }>

Defined in: packages/core/src/state-machine/index.ts:353

The lease topology. Guards and next values live in the pure functions above and are applied by leaseTransition, so the table stays synchronous while XState owns the legal state graph.

states: object

readonly id: "arona/lease" = "arona/lease"

readonly initial: "free" = "free"

readonly states: object

readonly free: object

readonly on: object

readonly acquire: object

readonly target: "held" = "held"

readonly held: object

readonly on: object

readonly acquire: object

readonly target: "held" = "held"

readonly expire: object

readonly target: "free" = "free"

readonly release: object

readonly target: "free" = "free"

readonly renew: object

readonly target: "held" = "held"