mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 21:25:59 +08:00
@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:
2
types/node/index.d.ts
vendored
2
types/node/index.d.ts
vendored
@@ -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;
|
||||
|
||||
3
types/node/v6/index.d.ts
vendored
3
types/node/v6/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user