@types/node 17.0.19 → 17.0.22
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/package.json +3 -3
- node/process.d.ts +1 -1
- node/stream/web.d.ts +2 -1
- node/tls.d.ts +1 -1
node/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://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: Mon, 21
|
|
11
|
+
* Last updated: Mon, 21 Mar 2022 17:01:46 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
14
14
|
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.22",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -215,6 +215,6 @@
|
|
|
215
215
|
},
|
|
216
216
|
"scripts": {},
|
|
217
217
|
"dependencies": {},
|
|
218
|
-
"typesPublisherContentHash": "
|
|
219
|
-
"typeScriptVersion": "3.
|
|
218
|
+
"typesPublisherContentHash": "4da218eb4092cdc01c961d35daf8323ee4c224bdd48d05913036fb5d4775a910",
|
|
219
|
+
"typeScriptVersion": "3.9"
|
|
220
220
|
}
|
node/process.d.ts
CHANGED
|
@@ -1405,7 +1405,7 @@ declare module 'process' {
|
|
|
1405
1405
|
emit(event: 'unhandledRejection', reason: unknown, promise: Promise<unknown>): boolean;
|
|
1406
1406
|
emit(event: 'warning', warning: Error): boolean;
|
|
1407
1407
|
emit(event: 'message', message: unknown, sendHandle: unknown): this;
|
|
1408
|
-
emit(event: Signals, signal
|
|
1408
|
+
emit(event: Signals, signal?: Signals): boolean;
|
|
1409
1409
|
emit(event: 'multipleResolves', type: MultipleResolveType, promise: Promise<unknown>, value: unknown): this;
|
|
1410
1410
|
emit(event: 'worker', listener: WorkerListener): this;
|
|
1411
1411
|
on(event: 'beforeExit', listener: BeforeExitListener): this;
|
node/stream/web.d.ts
CHANGED
|
@@ -139,7 +139,8 @@ declare module 'stream/web' {
|
|
|
139
139
|
pipeThrough<T>(transform: ReadableWritablePair<T, R>, options?: StreamPipeOptions): ReadableStream<T>;
|
|
140
140
|
pipeTo(destination: WritableStream<R>, options?: StreamPipeOptions): Promise<void>;
|
|
141
141
|
tee(): [ReadableStream<R>, ReadableStream<R>];
|
|
142
|
-
|
|
142
|
+
values(options?: { preventCancel?: boolean }): AsyncIterableIterator<R>;
|
|
143
|
+
[Symbol.asyncIterator](): AsyncIterableIterator<R>;
|
|
143
144
|
}
|
|
144
145
|
const ReadableStream: {
|
|
145
146
|
prototype: ReadableStream;
|
node/tls.d.ts
CHANGED
|
@@ -723,7 +723,7 @@ declare module 'tls' {
|
|
|
723
723
|
* object.passphrase is optional. Encrypted keys will be decrypted with
|
|
724
724
|
* object.passphrase if provided, or options.passphrase if it is not.
|
|
725
725
|
*/
|
|
726
|
-
key?: string | Buffer | Array<Buffer | KeyObject> | undefined;
|
|
726
|
+
key?: string | Buffer | Array<string | Buffer | KeyObject> | undefined;
|
|
727
727
|
/**
|
|
728
728
|
* Name of an OpenSSL engine to get private key from. Should be used
|
|
729
729
|
* together with privateKeyIdentifier.
|