0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-28 22:46:31 +01:00
nodejs/typings/internalBinding/options.d.ts
Michaël Zasso 70a5b86049
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>
2021-10-10 11:03:22 +02:00

36 lines
812 B
TypeScript

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