@types/node 12.12.23 → 12.12.27

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/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/v12.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Fri, 03 Jan 2020 18:51:01 GMT
11
+ * Last updated: Tue, 11 Feb 2020 17:16:31 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
 
node v12/fs.d.ts CHANGED
@@ -1824,6 +1824,7 @@ declare module "fs" {
1824
1824
  fd?: number;
1825
1825
  mode?: number;
1826
1826
  autoClose?: boolean;
1827
+ emitClose?: boolean;
1827
1828
  start?: number;
1828
1829
  highWaterMark?: number;
1829
1830
  }): WriteStream;
node v12/globals.d.ts CHANGED
@@ -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.
node v12/index.d.ts CHANGED
@@ -61,7 +61,7 @@
61
61
 
62
62
  // Forward-declarations for needed types from es2015 and later (in case users are using `--lib es5`)
63
63
  // Empty interfaces are used here which merge fine with the real declarations in the lib XXX files
64
- // just to ensure the names are known and node typings can be sued without importing these libs.
64
+ // just to ensure the names are known and node typings can be used without importing these libs.
65
65
  // if someone really needs these types the libs need to be added via --lib or in tsconfig.json
66
66
  interface MapConstructor { }
67
67
  interface WeakMapConstructor { }
node v12/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "12.12.23",
3
+ "version": "12.12.27",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -226,6 +226,6 @@
226
226
  },
227
227
  "scripts": {},
228
228
  "dependencies": {},
229
- "typesPublisherContentHash": "f7279e94bf197c6b4cf3f1ce226530ab697857fa30cb5281f829946839ec9999",
229
+ "typesPublisherContentHash": "66ec34aa7d7b68d5aabe73f0e9eea752b7dc3467fae97f4d5d56fc0b7e87d762",
230
230
  "typeScriptVersion": "2.8"
231
231
  }
node v12/readline.d.ts CHANGED
@@ -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;