Skip to content
Closed
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
6 changes: 6 additions & 0 deletions types/node/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,12 @@ declare namespace NodeJS {
stderr: WriteStream;
stdin: ReadStream;
openStdin(): Socket;
/**
* @deprecated
* Using process.binding() in general should be avoided.
* The type checking methods in particular can be replaced by using util.types.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not clear to me what this comment should tell me. What related to process.binding should be replaced by util.types?

*/
binding: { [key: string]: string; };

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be binding(internalModule: string): any;.

argv: string[];
argv0: string;
execArgv: string[];
Expand Down