Skip to main content

StateOptions

@webda/utils


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?​

optional end?: S

Defined in: packages/utils/src/state.ts:10

State name to transition to when the method completes successfully (outermost call only).


error?​

optional error?: S

Defined in: packages/utils/src/state.ts:12

State name to transition to when the method throws or rejects (outermost call only).


start?​

optional start?: S

Defined in: packages/utils/src/state.ts:8

State name to transition to when the method is first invoked (outermost call only).