Skip to content

ffi: add binary parameter to internal binding type - #66502

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
HoonDongKang:ffi/add-binary-constructor-typing
Oct 20, 2026
Merged

nodejs-github-bot merged 1 commit into
nodejs:mainfrom
HoonDongKang:ffi/add-binary-constructor-typing

Conversation

@HoonDongKang

@HoonDongKang HoonDongKang commented Oct 4, 2026 •

Copy link
Copy Markdown
Member

The internal FFI binding types were added in #65734. Later, the VFS support introduced in #65909 added an optional second argument to the native DynamicLibrary constructor for library bytes, but the type declaration still only accepts path.

Add binary?: ArrayBufferView to the constructor declaration to match the native binding.

Refs: #65909
Refs: #65734

Add the optional binary parameter to the DynamicLibrary constructor
declaration to match the native binding introduced in nodejs#65909.

Signed-off-by: HoonDongKang <d159123@naver.com>
@nodejs-github-bot nodejs-github-bot added the typings Issues and PRs related to internal TypeScript declarations. label Oct 4, 2026
@HoonDongKang

HoonDongKang commented Oct 12, 2026 •

Copy link
Copy Markdown
Member Author

@mcollina

I've opened a PR to add the type definition following the VFS changes. Could you please take a moment to review this small fix when you have time?

I've also opened a PR to apply for the triager role on #66427. I'd really appreciate it if you could take a look when you get a chance.

@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.

lgtm

@mcollina
mcollina requested a review from ShogunPanda October 12, 2026 09:15
@HoonDongKang HoonDongKang added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Oct 18, 2026
@daeyeon daeyeon added the commit-queue PRs queued for automated landing through the Commit Queue. label Oct 20, 2026
@nodejs-github-bot
nodejs-github-bot merged commit 8fbb315 into nodejs:main Oct 20, 2026
30 of 31 checks passed
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 8fbb315

@nodejs-github-bot nodejs-github-bot removed the commit-queue PRs queued for automated landing through the Commit Queue. label Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. typings Issues and PRs related to internal TypeScript declarations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants