Rxova
Skip to content

Type Alias: ReactLinearStepInput<TContext, TMeta, TStepId>

@rxova/journey-react


@rxova/journey-react / ReactLinearStepInput

type ReactLinearStepInput<TContext, TMeta, TStepId> =
| TStepId
| ReactLinearStepConfig<TContext, TStepId, TMeta>;

Defined in: react/src/react.types.ts:204

A React linear step: a bare id, or a config without lifecycle hooks.

Re-formed as a union rather than Omit<LinearStepInput, …>. Omit does not distribute, so omitting over string | LinearStepConfig would Pick the keys the two branches share — silently destroying both the string shorthand and the object branch, with no error at the declaration site.

Type ParameterDefault type
TContext-
TMeta-
TStepId extends stringstring