0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-24 20:29:23 +01:00
nodejs/typings/internalBinding/options.d.ts
Yagiz Nizipli da7962fd4d
lib: fix internalBinding typings
PR-URL: https://github.com/nodejs/node/pull/49742
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
2023-09-23 10:48:34 +00:00

36 lines
789 B
TypeScript

export interface OptionsBinding {
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;
};
noGlobalSearchPaths: boolean;
shouldNotRegisterESMLoader: boolean;
types: {
kNoOp: 0;
kV8Option: 1;
kBoolean: 2;
kInteger: 3;
kUInteger: 4;
kString: 5;
kHostPort: 6;
kStringList: 7;
};
}