on 368f024 help sign in
bridge/src/worker/custom.d.ts
11 lines 295 B history raw
1declare module 'comlink-loader!*' {
2 class WebpackWorker extends Worker {
3 constructor();
5 // Add any custom functions to this class.
6 // Make note that the return type needs to be wrapped in a promise.
7 processData(data: string): Promise<string>;
8 }
10 export = WebpackWorker;