@types/node 12.12.25 → 12.12.29

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.
Files changed (50) hide show
  1. {node v12 → node v12.12}/LICENSE +0 -0
  2. node v12.12/README.md +16 -0
  3. {node v12 → node v12.12}/assert.d.ts +0 -0
  4. {node v12 → node v12.12}/async_hooks.d.ts +0 -0
  5. {node v12 → node v12.12}/base.d.ts +0 -0
  6. {node v12 → node v12.12}/buffer.d.ts +0 -0
  7. {node v12 → node v12.12}/child_process.d.ts +0 -0
  8. {node v12 → node v12.12}/cluster.d.ts +0 -0
  9. {node v12 → node v12.12}/console.d.ts +0 -0
  10. {node v12 → node v12.12}/constants.d.ts +0 -0
  11. {node v12 → node v12.12}/crypto.d.ts +0 -0
  12. {node v12 → node v12.12}/dgram.d.ts +0 -0
  13. {node v12 → node v12.12}/dns.d.ts +0 -0
  14. {node v12 → node v12.12}/domain.d.ts +0 -0
  15. {node v12 → node v12.12}/events.d.ts +0 -0
  16. {node v12 → node v12.12}/fs.d.ts +0 -0
  17. {node v12 → node v12.12}/globals.d.ts +6 -0
  18. {node v12 → node v12.12}/http.d.ts +0 -0
  19. {node v12 → node v12.12}/http2.d.ts +0 -0
  20. {node v12 → node v12.12}/https.d.ts +0 -0
  21. {node v12 → node v12.12}/index.d.ts +1 -0
  22. {node v12 → node v12.12}/inspector.d.ts +0 -0
  23. {node v12 → node v12.12}/module.d.ts +0 -0
  24. {node v12 → node v12.12}/net.d.ts +0 -0
  25. {node v12 → node v12.12}/os.d.ts +0 -0
  26. {node v12 → node v12.12}/package.json +7 -2
  27. {node v12 → node v12.12}/path.d.ts +0 -0
  28. {node v12 → node v12.12}/perf_hooks.d.ts +0 -0
  29. {node v12 → node v12.12}/process.d.ts +0 -0
  30. {node v12 → node v12.12}/punycode.d.ts +0 -0
  31. {node v12 → node v12.12}/querystring.d.ts +0 -0
  32. {node v12 → node v12.12}/readline.d.ts +1 -0
  33. {node v12 → node v12.12}/repl.d.ts +0 -0
  34. {node v12 → node v12.12}/stream.d.ts +0 -0
  35. {node v12 → node v12.12}/string_decoder.d.ts +0 -0
  36. {node v12 → node v12.12}/timers.d.ts +0 -0
  37. {node v12 → node v12.12}/tls.d.ts +0 -0
  38. {node v12 → node v12.12}/trace_events.d.ts +0 -0
  39. {node v12 → node v12.12}/ts3.2/fs.d.ts +0 -0
  40. {node v12 → node v12.12}/ts3.2/globals.d.ts +0 -0
  41. {node v12 → node v12.12}/ts3.2/index.d.ts +0 -0
  42. {node v12 → node v12.12}/ts3.2/util.d.ts +0 -0
  43. {node v12 → node v12.12}/tty.d.ts +1 -1
  44. {node v12 → node v12.12}/url.d.ts +0 -0
  45. {node v12 → node v12.12}/util.d.ts +0 -0
  46. {node v12 → node v12.12}/v8.d.ts +0 -0
  47. {node v12 → node v12.12}/vm.d.ts +1 -1
  48. {node v12 → node v12.12}/worker_threads.d.ts +0 -0
  49. {node v12 → node v12.12}/zlib.d.ts +0 -0
  50. node v12/README.md +0 -16
File without changes
@@ -0,0 +1,16 @@
1
+ # Installation
2
+ > `npm install --save @types/node`
3
+
4
+ # Summary
5
+ This package contains type definitions for Node.js (http://nodejs.org/).
6
+
7
+ # Details
8
+ Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v12.
9
+
10
+ ### Additional Details
11
+ * Last updated: Fri, 28 Feb 2020 18:57:44 GMT
12
+ * Dependencies: none
13
+ * Global values: `Buffer`, `NodeJS`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
+
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), [Christian Vaagland Tellnes](https://github.com/tellnes), [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), and [ExE Boss](https://github.com/ExE-Boss).
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -310,6 +310,12 @@ declare class Buffer extends Uint8Array {
310
310
  */
311
311
  static from(data: number[]): Buffer;
312
312
  static from(data: Uint8Array): Buffer;
313
+ /**
314
+ * Creates a new buffer containing the coerced value of an object
315
+ * A `TypeError` will be thrown if {obj} has not mentioned methods or is not of other type appropriate for `Buffer.from()` variants.
316
+ * @param obj An object supporting `Symbol.toPrimitive` or `valueOf()`.
317
+ */
318
+ static from(obj: { valueOf(): string | object } | { [Symbol.toPrimitive](hint: 'string'): string }, byteOffset?: number, length?: number): Buffer;
313
319
  /**
314
320
  * Creates a new Buffer containing the given JavaScript string {str}.
315
321
  * If provided, the {encoding} parameter identifies the character encoding.
File without changes
File without changes
File without changes
@@ -41,6 +41,7 @@
41
41
  // Minh Son Nguyen <https://github.com/nguymin4>
42
42
  // Junxiao Shi <https://github.com/yoursunny>
43
43
  // Ilia Baryshnikov <https://github.com/qwelias>
44
+ // ExE Boss <https://github.com/ExE-Boss>
44
45
  // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
45
46
 
46
47
  // NOTE: These definitions support NodeJS and TypeScript 3.2.
File without changes
File without changes
File without changes
File without changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "12.12.25",
3
+ "version": "12.12.29",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -208,6 +208,11 @@
208
208
  "name": "Ilia Baryshnikov",
209
209
  "url": "https://github.com/qwelias",
210
210
  "githubUsername": "qwelias"
211
+ },
212
+ {
213
+ "name": "ExE Boss",
214
+ "url": "https://github.com/ExE-Boss",
215
+ "githubUsername": "ExE-Boss"
211
216
  }
212
217
  ],
213
218
  "main": "",
@@ -226,6 +231,6 @@
226
231
  },
227
232
  "scripts": {},
228
233
  "dependencies": {},
229
- "typesPublisherContentHash": "b3a8dc246d77431984496bcacafd42c40557fd567fac81619344583f8db2444a",
234
+ "typesPublisherContentHash": "58cd351b47fa24664ccaabdb48622ce2e4b470a48230e0417907c5806f125360",
230
235
  "typeScriptVersion": "2.8"
231
236
  }
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -130,6 +130,7 @@ declare module "readline" {
130
130
  prompt?: string;
131
131
  crlfDelay?: number;
132
132
  removeHistoryDuplicates?: boolean;
133
+ escapeCodeTimeout?: number;
133
134
  }
134
135
 
135
136
  function createInterface(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean): Interface;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -5,7 +5,7 @@ declare module "tty" {
5
5
  class ReadStream extends net.Socket {
6
6
  constructor(fd: number, options?: net.SocketConstructorOpts);
7
7
  isRaw: boolean;
8
- setRawMode(mode: boolean): void;
8
+ setRawMode(mode: boolean): this;
9
9
  isTTY: boolean;
10
10
  }
11
11
  /**
File without changes
File without changes
File without changes
@@ -106,5 +106,5 @@ declare module "vm" {
106
106
  function runInContext(code: string, contextifiedSandbox: Context, options?: RunningScriptOptions | string): any;
107
107
  function runInNewContext(code: string, sandbox?: Context, options?: RunningScriptOptions | string): any;
108
108
  function runInThisContext(code: string, options?: RunningScriptOptions | string): any;
109
- function compileFunction(code: string, params: string[], options: CompileFunctionOptions): Function;
109
+ function compileFunction(code: string, params?: string[], options?: CompileFunctionOptions): Function;
110
110
  }
File without changes
File without changes
node v12/README.md DELETED
@@ -1,16 +0,0 @@
1
- # Installation
2
- > `npm install --save @types/node`
3
-
4
- # Summary
5
- This package contains type definitions for Node.js (http://nodejs.org/).
6
-
7
- # Details
8
- Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v12.
9
-
10
- ### Additional Details
11
- * Last updated: Fri, 17 Jan 2020 18:31:11 GMT
12
- * Dependencies: none
13
- * Global values: `Buffer`, `NodeJS`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
-
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), Christian Vaagland Tellnes (https://github.com/tellnes), 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), and Ilia Baryshnikov (https://github.com/qwelias).