@types/node 13.7.0 → 13.7.1

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 (3) hide show
  1. node/README.md +1 -1
  2. node/globals.d.ts +6 -0
  3. node/package.json +2 -2
node/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.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Fri, 31 Jan 2020 21:34:20 GMT
11
+ * Last updated: Tue, 11 Feb 2020 17:16:28 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `Buffer`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
14
14
 
node/globals.d.ts CHANGED
@@ -239,6 +239,12 @@ declare class Buffer extends Uint8Array {
239
239
  */
240
240
  static from(data: number[]): Buffer;
241
241
  static from(data: Uint8Array): Buffer;
242
+ /**
243
+ * Creates a new buffer containing the coerced value of an object
244
+ * A `TypeError` will be thrown if {obj} has not mentioned methods or is not of other type appropriate for `Buffer.from()` variants.
245
+ * @param obj An object supporting `Symbol.toPrimitive` or `valueOf()`.
246
+ */
247
+ static from(obj: { valueOf(): string | object } | { [Symbol.toPrimitive](hint: 'string'): string }, byteOffset?: number, length?: number): Buffer;
242
248
  /**
243
249
  * Creates a new Buffer containing the given JavaScript string {str}.
244
250
  * If provided, the {encoding} parameter identifies the character encoding.
node/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "13.7.0",
3
+ "version": "13.7.1",
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": "b0cd8dccd6d2eca8bb1de5a05bebf13796984567eb809f63164972122c4ddbaf",
229
+ "typesPublisherContentHash": "8b99aa0031fac941d520282519c47b0255109858a20251313b1210c28769f463",
230
230
  "typeScriptVersion": "2.8"
231
231
  }