diff --git a/index.d.ts b/index.d.ts index c7ab56c..a84254f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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;