import { postMessage } from "https://deno.land/x/deno@v2.0.4/cli/tsc/dts/lib.webworker.d.ts";
Clones message and transmits it to the Worker object associated with dedicatedWorkerGlobal. transfer can be passed as a list of objects that are to be transferred rather than cloned.
Parameters
transfer: Transferable[]
Parameters
optional
options: StructuredSerializeOptions