UNPKG

@node-ts/bus-workflow

Version:

A workflow engine for orchestrating logic flows in distributed applications.

10 lines (7 loc) 278 B
export const handlerIdProperty = Symbol.for('node-ts/workflow/handler-id-property') export interface HandlerWithId { readonly [handlerIdProperty]: string } export function isHandlerWithId (handler: object): handler is HandlerWithId { return handlerIdProperty in handler }