typings: add fs_event_wrap internal binding types

Add a FsEventWrapBinding declaration for
internalBinding('fs_event_wrap') and wire it into InternalBindingMap.

Signed-off-by: leah-1ee <selee3196@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/65661
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
This commit is contained in:
leah-1ee authored and Antoine du Hamel committed 2026-09-08 22:07:38 +02:00
1 parent 6357c8f56e
commit 29e2b5a325
2 files changed
+30

No files matched your search

+2
View File
@@ -13,6 +13,7 @@ import { EncodingBinding } from './internalBinding/encoding_binding';
import { FFIBinding } from './internalBinding/ffi';
import { FsBinding } from './internalBinding/fs';
import { FsDirBinding } from './internalBinding/fs_dir';
import { FsEventWrapBinding } from './internalBinding/fs_event_wrap';
import { HeapUtilsBinding } from './internalBinding/heap_utils';
import { HttpParserBinding } from './internalBinding/http_parser';
import { ICUBinding } from './internalBinding/icu';
@@ -60,6 +61,7 @@ interface InternalBindingMap {
ffi: FFIBinding;
fs: FsBinding;
fs_dir: FsDirBinding;
fs_event_wrap: FsEventWrapBinding;
heap_utils: HeapUtilsBinding;
http_parser: HttpParserBinding;
icu: ICUBinding;
+28
View File
@@ -0,0 +1,28 @@
import { owner_symbol } from './symbols';
declare namespace InternalFsEventWrapBinding {
class FSEvent {
constructor();
[owner_symbol]?: object;
readonly initialized: boolean;
onchange?: (
status: number,
eventType: string,
filename: string | Uint8Array | null,
) => void;
start(
filename: string,
persistent: boolean,
recursive: boolean,
encoding: string,
): number;
close(callback?: () => void): void;
hasRef(): boolean;
ref(): void;
unref(): void;
}
}
export interface FsEventWrapBinding {
FSEvent: typeof InternalFsEventWrapBinding.FSEvent;
}