@types/node 10.17.56 → 10.17.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- node v10.17/README.md +1 -1
- node v10.17/globals.d.ts +42 -1
- node v10.17/package.json +2 -2
node v10.17/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (http://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v10.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 14 Apr 2021 20:31:29 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node v10.17/globals.d.ts
CHANGED
|
@@ -712,6 +712,32 @@ declare namespace NodeJS {
|
|
|
712
712
|
bigint(): bigint;
|
|
713
713
|
}
|
|
714
714
|
|
|
715
|
+
interface EmitWarningOptions {
|
|
716
|
+
/**
|
|
717
|
+
* When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted.
|
|
718
|
+
*
|
|
719
|
+
* @default 'Warning'
|
|
720
|
+
*/
|
|
721
|
+
type?: string;
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* A unique identifier for the warning instance being emitted.
|
|
725
|
+
*/
|
|
726
|
+
code?: string;
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace.
|
|
730
|
+
*
|
|
731
|
+
* @default process.emitWarning
|
|
732
|
+
*/
|
|
733
|
+
ctor?: Function;
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* Additional text to include with the error.
|
|
737
|
+
*/
|
|
738
|
+
detail?: string;
|
|
739
|
+
}
|
|
740
|
+
|
|
715
741
|
interface Process extends EventEmitter {
|
|
716
742
|
stdout: WriteStream;
|
|
717
743
|
stderr: WriteStream;
|
|
@@ -725,7 +751,22 @@ declare namespace NodeJS {
|
|
|
725
751
|
chdir(directory: string): void;
|
|
726
752
|
cwd(): string;
|
|
727
753
|
debugPort: number;
|
|
728
|
-
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* The `process.emitWarning()` method can be used to emit custom or application specific process warnings.
|
|
757
|
+
*
|
|
758
|
+
* These can be listened for by adding a handler to the `'warning'` event.
|
|
759
|
+
*
|
|
760
|
+
* @param warning The warning to emit.
|
|
761
|
+
* @param type When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted. Default: `'Warning'`.
|
|
762
|
+
* @param code A unique identifier for the warning instance being emitted.
|
|
763
|
+
* @param ctor When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace. Default: `process.emitWarning`.
|
|
764
|
+
*/
|
|
765
|
+
emitWarning(warning: string | Error, ctor?: Function): void;
|
|
766
|
+
emitWarning(warning: string | Error, type?: string, ctor?: Function): void;
|
|
767
|
+
emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void;
|
|
768
|
+
emitWarning(warning: string | Error, options?: EmitWarningOptions): void;
|
|
769
|
+
|
|
729
770
|
env: ProcessEnv;
|
|
730
771
|
exit(code?: number): never;
|
|
731
772
|
exitCode?: number;
|
node v10.17/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "10.17.
|
|
3
|
+
"version": "10.17.57",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -181,6 +181,6 @@
|
|
|
181
181
|
},
|
|
182
182
|
"scripts": {},
|
|
183
183
|
"dependencies": {},
|
|
184
|
-
"typesPublisherContentHash": "
|
|
184
|
+
"typesPublisherContentHash": "21ee547edeb934c544246f7992ac1d586dc35cb00655e944da076cdf56589314",
|
|
185
185
|
"typeScriptVersion": "3.5"
|
|
186
186
|
}
|