@types/node 13.13.26 → 13.13.30
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 v13.13/README.md +1 -1
- node v13.13/base.d.ts +0 -1
- node v13.13/fs.d.ts +12 -15
- node v13.13/globals.d.ts +1 -2
- node v13.13/http.d.ts +4 -1
- node v13.13/package.json +2 -2
- node v13.13/repl.d.ts +10 -2
- node v13.13/tls.d.ts +1 -1
- node v13.13/ts3.6/base.d.ts +0 -1
- node v13.13/ts3.6/index.d.ts +0 -1
node v13.13/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/v13.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 28 Oct 2020 18:55:39 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node v13.13/base.d.ts
CHANGED
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
/// <reference lib="esnext.bigint" />
|
|
14
14
|
|
|
15
15
|
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
|
16
|
-
// tslint:disable-next-line:no-bad-reference
|
|
17
16
|
/// <reference path="ts3.6/base.d.ts" />
|
|
18
17
|
|
|
19
18
|
// TypeScript 3.7-specific augmentations:
|
node v13.13/fs.d.ts
CHANGED
|
@@ -808,6 +808,15 @@ declare module "fs" {
|
|
|
808
808
|
function unlinkSync(path: PathLike): void;
|
|
809
809
|
|
|
810
810
|
interface RmDirOptions {
|
|
811
|
+
/**
|
|
812
|
+
* If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or
|
|
813
|
+
* `EPERM` error is encountered, Node.js will retry the operation with a linear
|
|
814
|
+
* backoff wait of `retryDelay` ms longer on each try. This option represents the
|
|
815
|
+
* number of retries. This option is ignored if the `recursive` option is not
|
|
816
|
+
* `true`.
|
|
817
|
+
* @default 0
|
|
818
|
+
*/
|
|
819
|
+
maxRetries?: number;
|
|
811
820
|
/**
|
|
812
821
|
* If `true`, perform a recursive directory removal. In
|
|
813
822
|
* recursive mode, errors are not reported if `path` does not exist, and
|
|
@@ -816,24 +825,12 @@ declare module "fs" {
|
|
|
816
825
|
* @default false
|
|
817
826
|
*/
|
|
818
827
|
recursive?: boolean;
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
interface RmDirAsyncOptions extends RmDirOptions {
|
|
822
828
|
/**
|
|
823
829
|
* The amount of time in milliseconds to wait between retries.
|
|
824
830
|
* This option is ignored if the `recursive` option is not `true`.
|
|
825
831
|
* @default 100
|
|
826
832
|
*/
|
|
827
833
|
retryDelay?: number;
|
|
828
|
-
/**
|
|
829
|
-
* If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or
|
|
830
|
-
* `EPERM` error is encountered, Node.js will retry the operation with a linear
|
|
831
|
-
* backoff wait of `retryDelay` ms longer on each try. This option represents the
|
|
832
|
-
* number of retries. This option is ignored if the `recursive` option is not
|
|
833
|
-
* `true`.
|
|
834
|
-
* @default 0
|
|
835
|
-
*/
|
|
836
|
-
maxRetries?: number;
|
|
837
834
|
}
|
|
838
835
|
|
|
839
836
|
/**
|
|
@@ -841,7 +838,7 @@ declare module "fs" {
|
|
|
841
838
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
842
839
|
*/
|
|
843
840
|
function rmdir(path: PathLike, callback: NoParamCallback): void;
|
|
844
|
-
function rmdir(path: PathLike, options:
|
|
841
|
+
function rmdir(path: PathLike, options: RmDirOptions, callback: NoParamCallback): void;
|
|
845
842
|
|
|
846
843
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
847
844
|
namespace rmdir {
|
|
@@ -849,7 +846,7 @@ declare module "fs" {
|
|
|
849
846
|
* Asynchronous rmdir(2) - delete a directory.
|
|
850
847
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
851
848
|
*/
|
|
852
|
-
function __promisify__(path: PathLike, options?:
|
|
849
|
+
function __promisify__(path: PathLike, options?: RmDirOptions): Promise<void>;
|
|
853
850
|
}
|
|
854
851
|
|
|
855
852
|
/**
|
|
@@ -2365,7 +2362,7 @@ declare module "fs" {
|
|
|
2365
2362
|
* Asynchronous rmdir(2) - delete a directory.
|
|
2366
2363
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2367
2364
|
*/
|
|
2368
|
-
function rmdir(path: PathLike, options?:
|
|
2365
|
+
function rmdir(path: PathLike, options?: RmDirOptions): Promise<void>;
|
|
2369
2366
|
|
|
2370
2367
|
/**
|
|
2371
2368
|
* Asynchronous fdatasync(2) - synchronize a file's in-core state with storage device.
|
node v13.13/globals.d.ts
CHANGED
|
@@ -870,7 +870,7 @@ declare namespace NodeJS {
|
|
|
870
870
|
/**
|
|
871
871
|
* Can only be set if not in worker thread.
|
|
872
872
|
*/
|
|
873
|
-
umask(mask?: number): number;
|
|
873
|
+
umask(mask?: string | number): number;
|
|
874
874
|
uptime(): number;
|
|
875
875
|
hrtime: HRTime;
|
|
876
876
|
domain: Domain;
|
|
@@ -1089,7 +1089,6 @@ declare namespace NodeJS {
|
|
|
1089
1089
|
type ArrayBufferView = TypedArray | DataView;
|
|
1090
1090
|
|
|
1091
1091
|
interface Require {
|
|
1092
|
-
/* tslint:disable-next-line:callable-types */
|
|
1093
1092
|
(id: string): any;
|
|
1094
1093
|
resolve: RequireResolve;
|
|
1095
1094
|
cache: Dict<NodeModule>;
|
node v13.13/http.d.ts
CHANGED
|
@@ -200,9 +200,12 @@ declare module "http" {
|
|
|
200
200
|
|
|
201
201
|
// https://github.com/nodejs/node/blob/master/lib/_http_client.js#L77
|
|
202
202
|
class ClientRequest extends OutgoingMessage {
|
|
203
|
+
/**
|
|
204
|
+
* @deprecate Use `socket` instead.
|
|
205
|
+
*/
|
|
203
206
|
connection: Socket;
|
|
204
207
|
socket: Socket;
|
|
205
|
-
aborted:
|
|
208
|
+
aborted: boolean;
|
|
206
209
|
|
|
207
210
|
constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void);
|
|
208
211
|
|
node v13.13/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "13.13.
|
|
3
|
+
"version": "13.13.30",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -241,6 +241,6 @@
|
|
|
241
241
|
},
|
|
242
242
|
"scripts": {},
|
|
243
243
|
"dependencies": {},
|
|
244
|
-
"typesPublisherContentHash": "
|
|
244
|
+
"typesPublisherContentHash": "724b1930c77dbe562f2ffe6e613c51483774f0f9b380113305c9638c1c408142",
|
|
245
245
|
"typeScriptVersion": "3.2"
|
|
246
246
|
}
|
node v13.13/repl.d.ts
CHANGED
|
@@ -136,13 +136,21 @@ declare module "repl" {
|
|
|
136
136
|
*/
|
|
137
137
|
readonly context: Context;
|
|
138
138
|
/**
|
|
139
|
-
*
|
|
139
|
+
* Outdated alias for `input`.
|
|
140
140
|
*/
|
|
141
141
|
readonly inputStream: NodeJS.ReadableStream;
|
|
142
142
|
/**
|
|
143
|
-
*
|
|
143
|
+
* Outdated alias for `output`.
|
|
144
144
|
*/
|
|
145
145
|
readonly outputStream: NodeJS.WritableStream;
|
|
146
|
+
/**
|
|
147
|
+
* The `Readable` stream from which REPL input will be read.
|
|
148
|
+
*/
|
|
149
|
+
readonly input: NodeJS.ReadableStream;
|
|
150
|
+
/**
|
|
151
|
+
* The `Writable` stream to which REPL output will be written.
|
|
152
|
+
*/
|
|
153
|
+
readonly output: NodeJS.WritableStream;
|
|
146
154
|
/**
|
|
147
155
|
* The commands registered via `replServer.defineCommand()`.
|
|
148
156
|
*/
|
node v13.13/tls.d.ts
CHANGED
|
@@ -729,7 +729,7 @@ declare module "tls" {
|
|
|
729
729
|
* @deprecated
|
|
730
730
|
*/
|
|
731
731
|
function createSecurePair(credentials?: SecureContext, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair;
|
|
732
|
-
function createSecureContext(
|
|
732
|
+
function createSecureContext(options?: SecureContextOptions): SecureContext;
|
|
733
733
|
function getCiphers(): string[];
|
|
734
734
|
|
|
735
735
|
/**
|
node v13.13/ts3.6/base.d.ts
CHANGED
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
/// <reference lib="esnext.bigint" />
|
|
14
14
|
|
|
15
15
|
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
|
16
|
-
// tslint:disable-next-line:no-bad-reference
|
|
17
16
|
/// <reference path="../ts3.4/base.d.ts" />
|
|
18
17
|
|
|
19
18
|
// TypeScript 3.4-specific augmentations:
|