StateOptions
Interface: StateOptions<S>
Defined in: packages/utils/src/state.ts:5
Options for the State decorator, specifying which state names to transition to at the start, successful end, or error end of the decorated method.
Type Parameters
S
S extends string = string
Properties
end?
optionalend?:S
Defined in: packages/utils/src/state.ts:10
State name to transition to when the method completes successfully (outermost call only).
error?
optionalerror?:S
Defined in: packages/utils/src/state.ts:12
State name to transition to when the method throws or rejects (outermost call only).
start?
optionalstart?:S
Defined in: packages/utils/src/state.ts:8
State name to transition to when the method is first invoked (outermost call only).