Interface IdGeneratorDecorator
-
IdGeneratorDecorator<M extends (dataBag: DataBag) => string>(
prototype: Workflow,
key: string | symbol,
method: TypedPropertyDescriptor<M>,
): voidMarks the method
keyof a workflow class, given its prototype.Type Parameters
- M extends (dataBag: DataBag) => string
The type of the method, which takes nothing or the data bag and returns the journey ID.
Returns void
- M extends (dataBag: DataBag) => string
The decorator idGenerator makes, which TypeScript calls once, with the method it marks, when the class is defined.