@types/node 10.17.14 → 10.17.15
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 v10/README.md +1 -1
- node v10/globals.d.ts +6 -0
- node v10/package.json +2 -2
node v10/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/v10.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated: Tue,
|
|
11
|
+
* Last updated: Tue, 11 Feb 2020 17:16:37 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `NodeJS`, `Symbol`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node v10/globals.d.ts
CHANGED
|
@@ -350,6 +350,12 @@ declare const Buffer: {
|
|
|
350
350
|
*/
|
|
351
351
|
from(data: any[]): Buffer;
|
|
352
352
|
from(data: Uint8Array): Buffer;
|
|
353
|
+
/**
|
|
354
|
+
* Creates a new buffer containing the coerced value of an object
|
|
355
|
+
* A `TypeError` will be thrown if {obj} has not mentioned methods or is not of other type appropriate for `Buffer.from()` variants.
|
|
356
|
+
* @param obj An object supporting `Symbol.toPrimitive` or `valueOf()`.
|
|
357
|
+
*/
|
|
358
|
+
from(obj: { valueOf(): string | object } | { [Symbol.toPrimitive](hint: 'string'): string }, byteOffset?: number, length?: number): Buffer;
|
|
353
359
|
/**
|
|
354
360
|
* Creates a new Buffer containing the given JavaScript string {str}.
|
|
355
361
|
* If provided, the {encoding} parameter identifies the character encoding.
|
node v10/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "10.17.
|
|
3
|
+
"version": "10.17.15",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -201,6 +201,6 @@
|
|
|
201
201
|
},
|
|
202
202
|
"scripts": {},
|
|
203
203
|
"dependencies": {},
|
|
204
|
-
"typesPublisherContentHash": "
|
|
204
|
+
"typesPublisherContentHash": "289134b34871508393cda5aedd4d62dcd064257c7052fa5430e04a20f9de29d1",
|
|
205
205
|
"typeScriptVersion": "2.8"
|
|
206
206
|
}
|