Problem
@types/node@26 removed the deprecated TransferListItem alias from worker_threads (only Transferable remains). thread-stream@4.2.0 still references workerThreads.TransferListItem[] in index.d.ts line 96:
emit(eventName: 'message', message: any, transferList?: workerThreads.TransferListItem[]): boolean
With skipLibCheck: false, TypeScript reports:
error TS2694: Namespace '"worker_threads"' has no exported member 'TransferListItem'.
Context
@types/node@25 kept TransferListItem as a deprecated alias of Transferable
@types/node@26 removed the alias per DefinitelyTyped Node 26 migration
- Latest npm release
4.2.0 and main branch still use TransferListItem
Suggested fix
Replace workerThreads.TransferListItem[] with workerThreads.Transferable[] in index.d.ts (same direction as the @types/node deprecation note).
Workaround
Consumers can pnpm-patch the one-line change until a release ships.
Problem
@types/node@26removed the deprecatedTransferListItemalias fromworker_threads(onlyTransferableremains).thread-stream@4.2.0still referencesworkerThreads.TransferListItem[]inindex.d.tsline 96:With
skipLibCheck: false, TypeScript reports:Context
@types/node@25keptTransferListItemas a deprecated alias ofTransferable@types/node@26removed the alias per DefinitelyTyped Node 26 migration4.2.0andmainbranch still useTransferListItemSuggested fix
Replace
workerThreads.TransferListItem[]withworkerThreads.Transferable[]inindex.d.ts(same direction as the@types/nodedeprecation note).Workaround
Consumers can pnpm-patch the one-line change until a release ships.