mirror of
https://github.com/ente-io/ente.git
synced 2025-05-24 12:09:17 +00:00
13 lines
467 B
TypeScript
13 lines
467 B
TypeScript
import { wrap } from "comlink";
|
|
import type { WorkerBridge } from "./comlink-worker";
|
|
|
|
/**
|
|
* The web worker side handle to the {@link WorkerBridge} exposed by the main
|
|
* thread.
|
|
*
|
|
* This file is meant to be run inside a worker. Accessing the properties of
|
|
* this object will be transparently (but asynchrorously) relayed to the
|
|
* implementation of the {@link WorkerBridge} in `comlink-worker.ts`.
|
|
*/
|
|
export const workerBridge = wrap<WorkerBridge>(globalThis);
|