Skip to content

Commit

Permalink
Allow url in WorkerImplementation constructor (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
852Kerfunkle authored Apr 27, 2024
1 parent 0d1a882 commit 1e0b5c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/master.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export interface ThreadsWorkerOptions extends WorkerOptions {

/** Worker implementation. Either web worker or a node.js Worker class. */
export declare class WorkerImplementation extends EventTarget implements Worker {
constructor(path: string, options?: ThreadsWorkerOptions)
constructor(path: string | URL, options?: ThreadsWorkerOptions)
public postMessage(value: any, transferList?: TransferList): void
public terminate(): void | Promise<number>
}
Expand Down

0 comments on commit 1e0b5c1

Please sign in to comment.