Options
All
  • Public
  • Public/Protected
  • All
Menu

@villedemontreal/workit-types

Index

Type aliases

IMessage

IMessage<TBody, TProps>: IMessageBase<TBody, TProps>

Type parameters

  • TBody = any

  • TProps = any

IWorkflowDefinitionRequest

Interceptor

Interceptor: <T>(message: T) => Promise<T>

Type declaration

    • <T>(message: T): Promise<T>
    • When we receive a payload from the client, we execute all interceptors. Those interceptors return IMessage that is merged (Shallow copy for body and customHeaders). This payload is passed to the task bound to the IoC.

      Type parameters

      Parameters

      • message: T

      Returns Promise<T>

LogFunction

LogFunction: (message: string, ...args: unknown[]) => void

Type declaration

    • (message: string, ...args: unknown[]): void
    • Parameters

      • message: string
      • Rest ...args: unknown[]

      Returns void

Loglevel

Loglevel: "INFO" | "DEBUG" | "NONE" | "ERROR"

ValidationFn

ValidationFn: (value: string) => boolean

Type declaration

    • (value: string): boolean
    • Parameters

      • value: string

      Returns boolean

Generated using TypeDoc