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

x/blocks/clients/proxy.ts>InvokeAwaiter

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Go to Latest
class InvokeAwaiter
implements PromiseLike<InvokeResult<Invoke<TManifest, TInvocableKey, TFuncSelector>, TManifest>>, InvokeAsPayload<TManifest, TInvocableKey, TFuncSelector>
import { InvokeAwaiter } from "https://deno.land/x/blocks@1.101.14/clients/proxy.ts";

Constructors

new
InvokeAwaiter(
invoker: (payload: Invoke<TManifest, TInvocableKey, TFuncSelector>, init: RequestInit | undefined) => Promise<InvokeResult<Invoke<TManifest, TInvocableKey, TFuncSelector>, TManifest>>,
init?: RequestInit | undefined,
)

Type Parameters

TManifest extends AppManifest
TInvocableKey extends string
TFuncSelector extends DotNestedKeys<ManifestInvocable<TManifest, TInvocableKey>["return"]>

Methods

then<TResult1, TResult2 = TResult1>(onfufilled?: Fulfilled<InvokeResult<Invoke<TManifest, TInvocableKey, TFuncSelector>, TManifest>, TResult1>, onrejected?: Rejected<TResult2>): Promise<TResult1 | TResult2>