import { type TransferHandler } from "https://dotland.deno.dev/x/scaffold@0.3.0/src/deps/comlink.ts";
Customizes the serialization of certain values as determined by canHandle()
.
Methods
canHandle(value: unknown): value is T
Gets called for every value to determine whether this transfer handler should serialize the value, which includes checking that it is of the right type (but can perform checks beyond that as well).