Skip to content

Documentation / @expofp/schema / IntentsSchema

Variable: IntentsSchema

ts
const IntentsSchema: ZodDiscriminatedUnion<Intent>;

Imperative actions a host requests on the floor plan after it loads — carried on the config's intents field and dispatched by applyIntents (@expofp/config) once the plan is ready. A discriminated union on name, each arm mirroring a FloorPlan method (same name, args matching its parameters), so adding an intent here extends the host interface automatically — and the applyIntents call site type-checks that every intent still names a real FloorPlan method.