@types/node 16.7.6 → 16.7.7
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/README.md +1 -1
- node/fs.d.ts +2 -2
- node/http2.d.ts +1 -1
- node/package.json +2 -2
- node/stream/consumers.d.ts +0 -1
- node/url.d.ts +1 -1
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:
|
|
11
|
+
* Last updated: Mon, 30 Aug 2021 16:01:20 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
14
14
|
|
node/fs.d.ts
CHANGED
|
@@ -188,7 +188,7 @@ declare module 'fs' {
|
|
|
188
188
|
/**
|
|
189
189
|
* A class representing a directory stream.
|
|
190
190
|
*
|
|
191
|
-
* Created by {@link opendir}, {@link opendirSync}, or
|
|
191
|
+
* Created by {@link opendir}, {@link opendirSync}, or `fsPromises.opendir()`.
|
|
192
192
|
*
|
|
193
193
|
* ```js
|
|
194
194
|
* import { opendir } from 'fs/promises';
|
|
@@ -208,7 +208,7 @@ declare module 'fs' {
|
|
|
208
208
|
*/
|
|
209
209
|
export class Dir implements AsyncIterable<Dirent> {
|
|
210
210
|
/**
|
|
211
|
-
* The read-only path of this directory as was provided to {@link opendir},
|
|
211
|
+
* The read-only path of this directory as was provided to {@link opendir},{@link opendirSync}, or `fsPromises.opendir()`.
|
|
212
212
|
* @since v12.12.0
|
|
213
213
|
*/
|
|
214
214
|
readonly path: string;
|
node/http2.d.ts
CHANGED
|
@@ -1714,7 +1714,7 @@ declare module 'http2' {
|
|
|
1714
1714
|
writeHead(statusCode: number, headers?: OutgoingHttpHeaders): this;
|
|
1715
1715
|
writeHead(statusCode: number, statusMessage: string, headers?: OutgoingHttpHeaders): this;
|
|
1716
1716
|
/**
|
|
1717
|
-
* Call
|
|
1717
|
+
* Call `http2stream.pushStream()` with the given headers, and wrap the
|
|
1718
1718
|
* given `Http2Stream` on a newly created `Http2ServerResponse` as the callback
|
|
1719
1719
|
* parameter if successful. When `Http2ServerRequest` is closed, the callback is
|
|
1720
1720
|
* called with an error `ERR_HTTP2_INVALID_STREAM`.
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "16.7.
|
|
3
|
+
"version": "16.7.7",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -225,6 +225,6 @@
|
|
|
225
225
|
},
|
|
226
226
|
"scripts": {},
|
|
227
227
|
"dependencies": {},
|
|
228
|
-
"typesPublisherContentHash": "
|
|
228
|
+
"typesPublisherContentHash": "40cd69fb3bceaf604e21a748719f9c7f10f61cd4c4bdfe167f1d2c862fba6070",
|
|
229
229
|
"typeScriptVersion": "3.7"
|
|
230
230
|
}
|
node/stream/consumers.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ interface Blob {
|
|
|
11
11
|
stream(): NodeJS.ReadableStream;
|
|
12
12
|
text(): Promise<string>;
|
|
13
13
|
}
|
|
14
|
-
|
|
15
14
|
declare module 'stream/consumers' {
|
|
16
15
|
import { Readable } from 'node:stream';
|
|
17
16
|
function buffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator<any>): Promise<Buffer>;
|
node/url.d.ts
CHANGED
|
@@ -697,7 +697,7 @@ declare module 'url' {
|
|
|
697
697
|
* Returns an ES6 `Iterator` over each of the name-value pairs in the query.
|
|
698
698
|
* Each item of the iterator is a JavaScript `Array`. The first item of the `Array`is the `name`, the second item of the `Array` is the `value`.
|
|
699
699
|
*
|
|
700
|
-
* Alias for
|
|
700
|
+
* Alias for `urlSearchParams[@@iterator]()`.
|
|
701
701
|
*/
|
|
702
702
|
entries(): IterableIterator<[string, string]>;
|
|
703
703
|
/**
|