@types/node: Added emitWarning method to process. (#16718)

* Added emitWarning method to process.

* Added emitWarning to @types/node/index.d.ts as well.
This commit is contained in:
Wilco Bakker
2017-06-06 15:31:33 +02:00
committed by Andy
parent 8acd40846b
commit 1c93aa3906
2 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,7 @@
// Parambir Singh <https://github.com/parambirs>
// Roberto Desideri <https://github.com/RobDesideri>
// Christian Vaagland Tellnes <https://github.com/tellnes>
// Wilco Bakker <https://github.com/WilcoBakker>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/************************************************
@@ -392,6 +393,7 @@ declare namespace NodeJS {
abort(): void;
chdir(directory: string): void;
cwd(): string;
emitWarning(warning: string | Error, name?: string, ctor?: Function): void;
env: any;
exit(code?: number): never;
exitCode: number;

View File

@@ -1,6 +1,6 @@
// Type definitions for Node.js v6.x
// Project: http://nodejs.org/
// Definitions by: Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>
// Definitions by: Microsoft TypeScript <http://typescriptlang.org>, DefinitelyTyped <https://github.com/DefinitelyTyped/DefinitelyTyped>, Wilco Bakker <https://github.com/WilcoBakker>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/************************************************
@@ -385,6 +385,7 @@ declare namespace NodeJS {
abort(): void;
chdir(directory: string): void;
cwd(): string;
emitWarning(warning: string | Error, name?: string, ctor?: Function): void;
env: any;
exit(code?: number): void;
exitCode: number;