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

x/live/clients/proxy.ts>InvokeAwaiter

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
class InvokeAwaiter
implements PromiseLike<InvokeResult<Invoke<TManifest, TInvocableKey, TFuncSelector>, TManifest>>, InvokeAsPayload<TManifest, TInvocableKey, TFuncSelector>
import { InvokeAwaiter } from "https://deno.land/x/live@1.53.6/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

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