Function getStepsMap

  • A helper function to create a typed map of steps. By wrapping your steps in this function, TypeScript will automatically infer the type of the steps (slugs, state, etc.) without you having to set it yourself.

    Type Parameters

    • StepSlugs extends string

    • State extends DefaultState

    • Metadata extends object

    Parameters

    • val: Step<StepSlugs, State, Metadata, StepSlugs>[]

    Returns Steps<StepSlugs, State, Metadata>

Generated using TypeDoc