Type alias StructuredTransformedStateNodeConfig<TContext, TStateSchema, TEvent>

StructuredTransformedStateNodeConfig<TContext, TStateSchema, TEvent>: Omit<StructuredSourceStateNodeConfig<TContext, TStateSchema, TEvent>, "stateDefinitions" | "transitions"> & {
    states?: Record<string, Partial<StructuredTransformedStateNodeConfig<TContext, TStateSchema, TEvent>>>;
    transitions: StructuredTransformedTransitionConfig<TContext, TEvent>[];
}

The output type expected of a state mapper.

All StructuredSourceStateNodeConfigs are acceptable as StructuredTransformedStateNodeConfigs but the intention is that mappers will make some modifications to the returned value.

NOTE: mappers may only add states via the states property.

Type Parameters

  • TContext

  • TStateSchema extends StateSchema<any>

  • TEvent extends EventObject

Generated using TypeDoc