Skip to main content
Module

x/scaffold/src/deps/comlink.ts

scaffold your next project with style and 💗
Latest
import * as scaffold from "https://deno.land/x/scaffold@0.3.0/src/deps/comlink.ts";

Variables

Allows customizing the serialization of certain values.

Interfaces

Interface of values that were marked to be proxied with comlink.proxy(). Can also be implemented by classes.

Additional special comlink methods available on each proxy returned by Comlink.wrap().

Customizes the serialization of certain values as determined by canHandle().

Type Aliases

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.

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

Proxies T if it is a ProxyMarked, clones it otherwise (as handled by structured cloning and transfer handlers).

Takes the raw type of a remote object, function or class in the other thread and returns the type as it is visible to the local thread from the proxy return value of Comlink.wrap() or Comlink.proxy().

Takes the raw type of a remote object in the other thread and returns the type as it is visible to the local thread when proxied with Comlink.proxy().

Inverse of ProxyOrClone<T>.