From ca9a854877bd3d940be9f3a26a7925ccd8ccdadb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Sun, 26 Sep 2021 16:07:13 +0200 Subject: [PATCH] typings: add missing types to options and util bindings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/40222 Reviewed-By: Tobias Nießen Reviewed-By: Evan Lucas Reviewed-By: Zijian Liu Reviewed-By: James M Snell Reviewed-By: Michael Dawson --- typings/internalBinding/options.d.ts | 1 + typings/internalBinding/util.d.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/typings/internalBinding/options.d.ts b/typings/internalBinding/options.d.ts index 2257463174d101..ded726f9d71127 100644 --- a/typings/internalBinding/options.d.ts +++ b/typings/internalBinding/options.d.ts @@ -20,6 +20,7 @@ declare function InternalBinding(binding: 'options'): { kAllowedInEnvironment: 0; kDisallowedInEnvironment: 1; }; + noGlobalSearchPaths: boolean; shouldNotRegisterESMLoader: boolean; types: { kNoOp: 0; diff --git a/typings/internalBinding/util.d.ts b/typings/internalBinding/util.d.ts index 2158c7ed688bcd..3d89796662f74a 100644 --- a/typings/internalBinding/util.d.ts +++ b/typings/internalBinding/util.d.ts @@ -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; };