@types/node 12.12.49 → 12.12.53

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 v12.12/README.md CHANGED
@@ -8,9 +8,9 @@ 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/v12.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Fri, 10 Jul 2020 13:13:42 GMT
11
+ * Last updated: Fri, 24 Jul 2020 21:38:17 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `NodeJS`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
15
15
  # Credits
16
- These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alexander T.](https://github.com/a-tarasyuk), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Bruno Scheufler](https://github.com/brunoscheufler), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Flarna](https://github.com/Flarna), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Hoàng Văn Khải](https://github.com/KSXGitHub), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nicolas Voigt](https://github.com/octo-sniffle), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Zane Hannan AU](https://github.com/ZaneHannanAU), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Jordi Oliveras Rovira](https://github.com/j-oliveras), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Minh Son Nguyen](https://github.com/nguymin4), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), and [Jason Kwok](https://github.com/JasonHK).
16
+ These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alexander T.](https://github.com/a-tarasyuk), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Bruno Scheufler](https://github.com/brunoscheufler), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Flarna](https://github.com/Flarna), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Hoàng Văn Khải](https://github.com/KSXGitHub), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Zane Hannan AU](https://github.com/ZaneHannanAU), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Jordi Oliveras Rovira](https://github.com/j-oliveras), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Minh Son Nguyen](https://github.com/nguymin4), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), and [Jason Kwok](https://github.com/JasonHK).
@@ -409,6 +409,7 @@ declare module "child_process" {
409
409
  detached?: boolean;
410
410
  windowsVerbatimArguments?: boolean;
411
411
  }
412
+ function fork(modulePath: string, options?: ForkOptions): ChildProcess;
412
413
  function fork(modulePath: string, args?: ReadonlyArray<string>, options?: ForkOptions): ChildProcess;
413
414
 
414
415
  interface SpawnSyncOptions extends CommonOptions {
@@ -1162,6 +1162,12 @@ declare namespace NodeJS {
1162
1162
  loaded: boolean;
1163
1163
  parent: Module | null;
1164
1164
  children: Module[];
1165
+ /**
1166
+ * @since 11.14.0
1167
+ *
1168
+ * The directory name of the module. This is usually the same as the path.dirname() of the module.id.
1169
+ */
1170
+ path: string;
1165
1171
  paths: string[];
1166
1172
 
1167
1173
  constructor(id: string, parent?: Module);
@@ -1170,7 +1176,10 @@ declare namespace NodeJS {
1170
1176
  type TypedArray = Uint8Array | Uint8ClampedArray | Uint16Array | Uint32Array | Int8Array | Int16Array | Int32Array | Float32Array | Float64Array;
1171
1177
  type ArrayBufferView = TypedArray | DataView;
1172
1178
 
1173
- // The value type here is a "poor man's `unknown`". When these types support TypeScript
1174
- // 3.0+, we can replace this with `unknown`.
1175
- type PoorMansUnknown = {} | null | undefined;
1179
+ // TODO: The value type here is a version of `unknown` with an acceptably lossy amount of accuracy.
1180
+ // Now that TypeScript's DT support is 3.0+, we can look into replacing this with `unknown`.
1181
+ type UnknownFacade = {} | null | undefined;
1182
+
1183
+ /** @deprecated - Use `UnknownFacade` instead. It is a better classifier for the type */
1184
+ type PoorMansUnknown = UnknownFacade;
1176
1185
  }
node v12.12/index.d.ts CHANGED
@@ -22,7 +22,6 @@
22
22
  // Mariusz Wiktorczyk <https://github.com/mwiktorczyk>
23
23
  // Mohsen Azimi <https://github.com/mohsen1>
24
24
  // Nicolas Even <https://github.com/n-e>
25
- // Nicolas Voigt <https://github.com/octo-sniffle>
26
25
  // Nikita Galkin <https://github.com/galkin>
27
26
  // Parambir Singh <https://github.com/parambirs>
28
27
  // Sebastian Silbermann <https://github.com/eps1lon>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "12.12.49",
3
+ "version": "12.12.53",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -114,11 +114,6 @@
114
114
  "url": "https://github.com/n-e",
115
115
  "githubUsername": "n-e"
116
116
  },
117
- {
118
- "name": "Nicolas Voigt",
119
- "url": "https://github.com/octo-sniffle",
120
- "githubUsername": "octo-sniffle"
121
- },
122
117
  {
123
118
  "name": "Nikita Galkin",
124
119
  "url": "https://github.com/galkin",
@@ -241,6 +236,6 @@
241
236
  },
242
237
  "scripts": {},
243
238
  "dependencies": {},
244
- "typesPublisherContentHash": "0683ca21a6472f4dd88824333aa26519f60988e72c9e6f24672dd40fe1dd7642",
239
+ "typesPublisherContentHash": "b9815ea292276c26868629d2ee4eb5d96e995eec5470aee461285872e4f5a819",
245
240
  "typeScriptVersion": "3.0"
246
241
  }
@@ -11,7 +11,7 @@ declare module "querystring" {
11
11
  interface ParsedUrlQuery { [key: string]: string | string[]; }
12
12
 
13
13
  interface ParsedUrlQueryInput {
14
- [key: string]: string | number | boolean | string[] | number[] | boolean[] | undefined | null;
14
+ [key: string]: string | number | boolean | ReadonlyArray<string> | ReadonlyArray<number> | ReadonlyArray<boolean> | undefined | null;
15
15
  }
16
16
 
17
17
  function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string;