Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions typings/internalBinding/fs.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ConstantsBinding } from './constants';
import type { HandleWrap } from './handle_wrap';

interface ReadFileContext {
fd: number | undefined;
Expand Down Expand Up @@ -49,13 +50,11 @@ declare namespace InternalFSBinding {
constructor(useBigint: boolean);
initialized: boolean;
start(path: string, interval: number): number;
getAsyncId(): number;
close(): void;
ref(): void;
unref(): void;
onchange: (status: number, eventType: string, filename: string | Buffer) => void;
}

interface StatWatcher extends HandleWrap {}

function access(path: StringOrBuffer, mode: number, req: FSReqCallback): void;
function access(path: StringOrBuffer, mode: number): void;
function access(path: StringOrBuffer, mode: number, usePromises: typeof kUsePromises): Promise<void>;
Expand Down
7 changes: 3 additions & 4 deletions typings/internalBinding/fs_event_wrap.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { HandleWrap } from './handle_wrap';
import { owner_symbol } from './symbols';

declare namespace InternalFsEventWrapBinding {
Expand All @@ -16,11 +17,9 @@ declare namespace InternalFsEventWrapBinding {
recursive: boolean,
encoding: string,
): number;
close(callback?: () => void): void;
hasRef(): boolean;
ref(): void;
unref(): void;
}

interface FSEvent extends HandleWrap {}
}

export interface FsEventWrapBinding {
Expand Down
12 changes: 3 additions & 9 deletions typings/internalBinding/performance.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import type { HandleWrap } from './handle_wrap';

declare namespace InternalPerformanceBinding {
interface HistogramBase {
count(): number;
Expand Down Expand Up @@ -46,17 +48,9 @@ declare namespace InternalPerformanceBinding {
resetCount(): number;
}

interface ELDHistogram extends HistogramBase {
interface ELDHistogram extends HistogramBase, HandleWrap {
start(reset?: boolean): void;
stop(): void;
close(callback?: () => void): void;
hasRef(): boolean;
ref(): void;
unref(): void;
getAsyncId(): number;
asyncReset(resource: object, executionAsyncId?: number): void;
getAsyncContextFrameForDebuggingOnly(): unknown;
getProviderType(): number;
}

interface Histogram extends HistogramBase {}
Expand Down
6 changes: 3 additions & 3 deletions typings/internalBinding/process_wrap.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { HandleWrap } from './handle_wrap';
import { owner_symbol } from './symbols';

declare namespace InternalProcessWrapBinding {
Expand Down Expand Up @@ -25,11 +26,10 @@ declare namespace InternalProcessWrapBinding {
gid: number | null | undefined,
): number;
kill(signal: number): number;
ref(): void;
unref(): void;
close(callback?: () => void): void;
}

interface Process extends HandleWrap {}

interface ProcessConstants {
kProcessFlagDetached: number;
kProcessFlagWindowsHide: number;
Expand Down
Loading