@types/node 12.12.26 → 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: Tue, 28 Jan 2020 19:35:06 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/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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "12.12.26",
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": "8460bc9c9c6e6cf84d49221834e6c19c15f2dcd3ba1535ad428c2c0df7bbe4ed",
229
+ "typesPublisherContentHash": "66ec34aa7d7b68d5aabe73f0e9eea752b7dc3467fae97f4d5d56fc0b7e87d762",
230
230
  "typeScriptVersion": "2.8"
231
231
  }