File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3,15 +3,10 @@ import {getWorkerImplementation as getNodeWorker } from "./master/implementation
3
3
4
4
import {
5
5
BlobWorker ,
6
- ThreadsWorkerOptions ,
6
+ CreateWorkerOptions ,
7
7
WorkerImplementation ,
8
8
} from "./types/master"
9
9
10
- export interface CreateWorkerOptions extends ThreadsWorkerOptions {
11
- backend : string
12
- blob : boolean
13
- }
14
-
15
10
export function createWorker ( workerPath : string & Blob , options : CreateWorkerOptions ) {
16
11
let WorkerConstructor : typeof WorkerImplementation | typeof BlobWorker
17
12
if ( options . backend === "web" ) {
Original file line number Diff line number Diff line change @@ -85,6 +85,11 @@ export interface ThreadsWorkerOptions extends WorkerOptions {
85
85
workerData ?: any
86
86
}
87
87
88
+ export interface CreateWorkerOptions extends ThreadsWorkerOptions {
89
+ backend : string
90
+ blob : boolean
91
+ }
92
+
88
93
/** Worker implementation. Either web worker or a node.js Worker class. */
89
94
export declare class WorkerImplementation extends EventTarget implements Worker {
90
95
constructor ( path : string , options ?: ThreadsWorkerOptions )
You can’t perform that action at this time.
0 commit comments