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 @@ -88,6 +88,11 @@ export interface ThreadsWorkerOptions extends WorkerOptions {
88
88
CORSWorkaround ?: boolean
89
89
}
90
90
91
+ export interface CreateWorkerOptions extends ThreadsWorkerOptions {
92
+ backend : string
93
+ blob : boolean
94
+ }
95
+
91
96
/** Worker implementation. Either web worker or a node.js Worker class. */
92
97
export declare class WorkerImplementation extends EventTarget implements Worker {
93
98
constructor ( path : string , options ?: ThreadsWorkerOptions )
You can’t perform that action at this time.
0 commit comments