Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/blocks/blocks/workflow.ts>WorkflowContext

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Go to Latest
class WorkflowContext
import { WorkflowContext } from "https://deno.land/x/blocks@1.102.4/blocks/workflow.ts";

Constructors

new
WorkflowContext(state: DecoState<unknown, DecoSiteState, TManifest>, execution: WorkflowExecution<Arg, unknown, TMetadata>)

Type Parameters

optional
TManifest extends AppManifest = AppManifest
optional
TMetadata extends WorkflowMetadata = WorkflowMetadata

Methods

invoke<TInvocableKey extends AvailableFunctions<TManifest> | AvailableLoaders<TManifest> | AvailableActions<TManifest>, TFuncSelector extends TInvocableKey extends AvailableFunctions<TManifest> ? DotNestedKeys<ManifestFunction<TManifest, TInvocableKey>["return"]> : TInvocableKey extends AvailableActions<TManifest> ? DotNestedKeys<ManifestAction<TManifest, TInvocableKey>["return"]> : TInvocableKey extends AvailableLoaders<TManifest> ? DotNestedKeys<ManifestLoader<TManifest, TInvocableKey>["return"]> : never, TPayload extends Invoke<TManifest, TInvocableKey, TFuncSelector>>(key: TInvocableKey, props?: Invoke<TManifest, TInvocableKey, TFuncSelector>["props"]): LocalActivityCommand<InvokeResult<TPayload, TManifest>, [Invoke<TManifest, TInvocableKey, TFuncSelector>["props"]]>