Type Alias Context<D>

Context<D>: Get<D, ["$schema", "strict"]> extends true
    ? "context" extends keyof Get<D, ["$schema"]>
        ? Get<D, ["$schema", "context"]>
        : {
            [ERROR]: "Error: `context` is not defined in `$schema`.";
        }
    : Get<D, ["$schema", "context"], Get<D, ["context"], undefined>>

The type of context for state machine.

Type Parameters

  • D

    The type of definition for state machine.