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

x/live/mod.ts>WorkflowContext#invoke

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
method WorkflowContext.prototype.invoke
import { WorkflowContext } from "https://deno.land/x/live@1.60.20/mod.ts";

Type Parameters

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>

Parameters

optional
props: Invoke<TManifest, TInvocableKey, TFuncSelector>["props"]

Returns

LocalActivityCommand<InvokeResult<TPayload, TManifest>, [Invoke<TManifest, TInvocableKey, TFuncSelector>["props"]]>