[node] change ProcessEnv back to interface to not break custom overrides (#44003)

Co-authored-by: Patrick Fitzgerald <patrick.fitzgerald@hulu.com>
This commit is contained in:
Patrick Fitzgerald 2020-04-20 09:24:00 -07:00 committed by GitHub
parent 069f404e66
commit a03eae245b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -133,7 +133,7 @@ declare module "child_process" {
uid?: number;
gid?: number;
cwd?: string;
env?: NodeJS.Dict<string>;
env?: NodeJS.ProcessEnv;
}
interface CommonOptions extends ProcessEnvOptions {

View File

@ -676,8 +676,8 @@ declare namespace NodeJS {
isTTY?: true;
}
// Alias for compability
type ProcessEnv = Dict<string>;
// Alias for compatibility
interface ProcessEnv extends Dict<string> {}
interface HRTime {
(time?: [number, number]): [number, number];
@ -787,7 +787,7 @@ declare namespace NodeJS {
cwd(): string;
debugPort: number;
emitWarning(warning: string | Error, name?: string, ctor?: Function): void;
env: Dict<string>;
env: ProcessEnv;
exit(code?: number): never;
exitCode?: number;
getgid(): number;