Skip to content

Update transferList type in emit method signature#233

Open
verheyenkoen wants to merge 2 commits into
pinojs:mainfrom
verheyenkoen:patch-1
Open

Update transferList type in emit method signature#233
verheyenkoen wants to merge 2 commits into
pinojs:mainfrom
verheyenkoen:patch-1

Conversation

@verheyenkoen

Copy link
Copy Markdown

FIXES #228

@mcollina mcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a test for this type?

@verheyenkoen

Copy link
Copy Markdown
Author

can you add a test for this type?

@mcollina I've tried this locally but the type test would only work if we bump @types/node to "^26". Since TransferListItem and Transferable are "equal types", no test feature that I know of could verify this deprecation in @types/node@25.

Is that ok to add as well?

@mcollina

Copy link
Copy Markdown
Member

that's ok

@verheyenkoen verheyenkoen requested a review from mcollina July 15, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

index.d.ts uses removed worker_threads.TransferListItem (@types/node@26)

2 participants