MonetizationOS Docs
Workflows ReferenceType Definitions

MiddlewareWorkflow

type MiddlewareWorkflow = (args) => 
  | Promise<MiddlewareWorkflowResult[]>
  | MiddlewareWorkflowResult[];

Workflow that runs before other workflows, allowing it to contribute to shared context or short-circuit the flow.

Parameters

ParameterType
argsMiddlewareWorkflowArgs

Returns

| Promise<MiddlewareWorkflowResult[]> | MiddlewareWorkflowResult[]

On this page