mirror of https://github.com/nodejs/node.git
typings: add missing types to options and util bindings
PR-URL: https://github.com/nodejs/node/pull/40222 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>pull/40399/head
parent
3815a21beb
commit
70a5b86049
|
@ -20,6 +20,7 @@ declare function InternalBinding(binding: 'options'): {
|
|||
kAllowedInEnvironment: 0;
|
||||
kDisallowedInEnvironment: 1;
|
||||
};
|
||||
noGlobalSearchPaths: boolean;
|
||||
shouldNotRegisterESMLoader: boolean;
|
||||
types: {
|
||||
kNoOp: 0;
|
||||
|
|
|
@ -44,4 +44,5 @@ declare function InternalBinding(binding: 'util'): {
|
|||
shouldAbortOnUncaughtToggle: [shouldAbort: 0 | 1];
|
||||
WeakReference: typeof InternalUtilBinding.WeakReference;
|
||||
guessHandleType(fd: number): 'TCP' | 'TTY' | 'UDP' | 'FILE' | 'PIPE' | 'UNKNOWN';
|
||||
toUSVString(str: string, start: number): string;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue