form-graph
    Preparing search index...

    Type Alias InferData<G>

    InferData: G extends {
        parse(
            raw: Record<string, unknown>,
            ...ext: never[],
        ): ValidationResult<Data, _State>;
    }
        ? Data
        : never

    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.

    Type Parameters

    • G