Skip to main content
Module

x/scaffold/src/deps/comlink.ts>Local

scaffold your next project with style and 💗
Latest
type alias Local
import { type Local } from "https://deno.land/x/scaffold@0.3.0/src/deps/comlink.ts";

Takes the raw type of a remote object, function or class as a remote thread would see it through a proxy (e.g. when passed in as a function argument) and returns the type the local thread has to supply.

This is the inverse of Remote<T>. It takes a Remote<T> and returns its original input T.

definition: Omit<LocalObject<T>, keyof ProxyMethods> & (T extends (...args: infer TArguments) => infer TReturn ? (...args: [I in keyof TArguments]: ProxyOrClone<TArguments[I]>) => MaybePromise<UnproxyOrClone<Unpromisify<TReturn>>> : unknown) & (T extends { new (...args: infer TArguments): infer TInstance; } ? { new (...args: [I in keyof TArguments]: ProxyOrClone<TArguments[I]>): MaybePromise<Local<Unpromisify<TInstance>>>; } : unknown)