Skip to content

Commit

Permalink
Set type of transferList to workerThreads.TransferListItem (#152)
Browse files Browse the repository at this point in the history
* fix: type reference to DOM lib, Transferable

* fix: replace type 'Transferable' with 'TransferListItem'
  • Loading branch information
kylejeske authored May 31, 2024
1 parent 88d8524 commit de08119
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ declare class ThreadStream extends EventEmitter {
* @param transferList an optional list of transferable objects to be transferred to the Worker context.
* @returns {boolean} true if the event had listeners, false otherwise.
*/
emit(eventName: 'message', message: any, transferList?: Transferable[]): boolean
emit(eventName: 'message', message: any, transferList?: workerThreads.TransferListItem[]): boolean
}

export = ThreadStream;

0 comments on commit de08119

Please sign in to comment.