summaryrefslogtreecommitdiff
path: root/typings/internalBinding/options.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'typings/internalBinding/options.d.ts')
-rw-r--r--typings/internalBinding/options.d.ts34
1 files changed, 34 insertions, 0 deletions
diff --git a/typings/internalBinding/options.d.ts b/typings/internalBinding/options.d.ts
new file mode 100644
index 0000000000..2257463174
--- /dev/null
+++ b/typings/internalBinding/options.d.ts
@@ -0,0 +1,34 @@
+declare function InternalBinding(binding: 'options'): {
+ getOptions(): {
+ options: Map<
+ string,
+ {
+ helpText: string;
+ envVarSettings: 0 | 1;
+ } & (
+ | { type: 0 | 1; value: undefined }
+ | { type: 2; value: boolean }
+ | { type: 3 | 4; value: number }
+ | { type: 5; value: string }
+ | { type: 6; value: { host: string; port: number } }
+ | { type: 7; value: string[] }
+ )
+ >;
+ aliases: Map<string, string[]>;
+ };
+ envSettings: {
+ kAllowedInEnvironment: 0;
+ kDisallowedInEnvironment: 1;
+ };
+ shouldNotRegisterESMLoader: boolean;
+ types: {
+ kNoOp: 0;
+ kV8Option: 1;
+ kBoolean: 2;
+ kInteger: 3;
+ kUInteger: 4;
+ kString: 5;
+ kHostPort: 6;
+ kStringList: 7;
+ };
+};