mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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:
1 parent
6357c8f56e
commit
29e2b5a325
2 files changed
+30
No files matched your search
Vendored
+2
@@ -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
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user