Handler-facing type extraction — the counterpart of z.infer. A complex
form's consumers (server handlers, submit adapters) work from the parsed
WIRE data, and for a hub that is a discriminated union over arms:
type Data = InferData; // the union
type KlingArm = InferArm<typeof hub, 'ecosystem', 'Kling'>; // one arm
InferState is the resolved STATE (computeds and branch tags included),
the type getSnapshot().state and rule callbacks see.
Handler-facing type extraction — the counterpart of
z.infer. A complex form's consumers (server handlers, submit adapters) work from the parsed WIRE data, and for a hub that is a discriminated union over arms:type Data = InferData; // the union
type KlingArm = InferArm<typeof hub, 'ecosystem', 'Kling'>; // one arm
InferStateis the resolved STATE (computeds and branch tags included), the typegetSnapshot().stateand rule callbacks see.