Commit 8fbb315a4de for nodejs
commit 8fbb315a4debcee8300d2e6768cd2aad58967105
Author: Donghoon Kang <d159123@naver.com>
Date: Tue Oct 20 11:50:02 2026 +0900
ffi: add binary parameter to internal binding type
Add the optional binary parameter to the DynamicLibrary constructor
declaration to match the native binding introduced in #65909.
Signed-off-by: HoonDongKang <d159123@naver.com>
PR-URL: https://github.com/nodejs/node/pull/66502
Refs: https://github.com/nodejs/node/pull/65909
Refs: https://github.com/nodejs/node/pull/65734
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
diff --git a/typings/internalBinding/ffi.d.ts b/typings/internalBinding/ffi.d.ts
index 0294d1987b0..bebf2afa24d 100644
--- a/typings/internalBinding/ffi.d.ts
+++ b/typings/internalBinding/ffi.d.ts
@@ -32,7 +32,7 @@ declare namespace InternalFFIBinding {
}
class DynamicLibrary {
- constructor(path: string | null);
+ constructor(path: string | null, binary?: ArrayBufferView);
readonly path: string;
readonly symbols: Record<string, bigint>;