@types/node 12.12.68 → 12.12.69
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 v12.12/README.md +1 -1
- node v12.12/fs.d.ts +11 -14
- node v12.12/package.json +2 -2
node v12.12/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/v12.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Tue, 20 Oct 2020 12:09:03 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Buffer`, `NodeJS`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node v12.12/fs.d.ts
CHANGED
|
@@ -739,6 +739,14 @@ declare module "fs" {
|
|
|
739
739
|
function unlinkSync(path: PathLike): void;
|
|
740
740
|
|
|
741
741
|
interface RmDirOptions {
|
|
742
|
+
/**
|
|
743
|
+
* If an `EBUSY`, `ENOTEMPTY`, or `EPERM` error is
|
|
744
|
+
* encountered, Node.js will retry the operation with a linear backoff wait of
|
|
745
|
+
* 100ms longer on each try. This option represents the number of retries. This
|
|
746
|
+
* option is ignored if the `recursive` option is not `true`.
|
|
747
|
+
* @default 3
|
|
748
|
+
*/
|
|
749
|
+
maxRetries?: number;
|
|
742
750
|
/**
|
|
743
751
|
* If `true`, perform a recursive directory removal. In
|
|
744
752
|
* recursive mode, errors are not reported if `path` does not exist, and
|
|
@@ -747,9 +755,6 @@ declare module "fs" {
|
|
|
747
755
|
* @default false
|
|
748
756
|
*/
|
|
749
757
|
recursive?: boolean;
|
|
750
|
-
}
|
|
751
|
-
|
|
752
|
-
interface RmDirAsyncOptions extends RmDirOptions {
|
|
753
758
|
/**
|
|
754
759
|
* If an `EMFILE` error is encountered, Node.js will
|
|
755
760
|
* retry the operation with a linear backoff of 1ms longer on each try until the
|
|
@@ -758,14 +763,6 @@ declare module "fs" {
|
|
|
758
763
|
* @default 1000
|
|
759
764
|
*/
|
|
760
765
|
emfileWait?: number;
|
|
761
|
-
/**
|
|
762
|
-
* If an `EBUSY`, `ENOTEMPTY`, or `EPERM` error is
|
|
763
|
-
* encountered, Node.js will retry the operation with a linear backoff wait of
|
|
764
|
-
* 100ms longer on each try. This option represents the number of retries. This
|
|
765
|
-
* option is ignored if the `recursive` option is not `true`.
|
|
766
|
-
* @default 3
|
|
767
|
-
*/
|
|
768
|
-
maxBusyTries?: number;
|
|
769
766
|
}
|
|
770
767
|
|
|
771
768
|
/**
|
|
@@ -773,7 +770,7 @@ declare module "fs" {
|
|
|
773
770
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
774
771
|
*/
|
|
775
772
|
function rmdir(path: PathLike, callback: NoParamCallback): void;
|
|
776
|
-
function rmdir(path: PathLike, options:
|
|
773
|
+
function rmdir(path: PathLike, options: RmDirOptions, callback: NoParamCallback): void;
|
|
777
774
|
|
|
778
775
|
// NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime.
|
|
779
776
|
namespace rmdir {
|
|
@@ -781,7 +778,7 @@ declare module "fs" {
|
|
|
781
778
|
* Asynchronous rmdir(2) - delete a directory.
|
|
782
779
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
783
780
|
*/
|
|
784
|
-
function __promisify__(path: PathLike, options?:
|
|
781
|
+
function __promisify__(path: PathLike, options?: RmDirOptions): Promise<void>;
|
|
785
782
|
}
|
|
786
783
|
|
|
787
784
|
/**
|
|
@@ -2189,7 +2186,7 @@ declare module "fs" {
|
|
|
2189
2186
|
* Asynchronous rmdir(2) - delete a directory.
|
|
2190
2187
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2191
2188
|
*/
|
|
2192
|
-
function rmdir(path: PathLike, options?:
|
|
2189
|
+
function rmdir(path: PathLike, options?: RmDirOptions): Promise<void>;
|
|
2193
2190
|
|
|
2194
2191
|
/**
|
|
2195
2192
|
* Asynchronous fdatasync(2) - synchronize a file's in-core state with storage device.
|
node v12.12/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "12.12.
|
|
3
|
+
"version": "12.12.69",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"contributors": [
|
|
@@ -231,6 +231,6 @@
|
|
|
231
231
|
},
|
|
232
232
|
"scripts": {},
|
|
233
233
|
"dependencies": {},
|
|
234
|
-
"typesPublisherContentHash": "
|
|
234
|
+
"typesPublisherContentHash": "61f7351a46af6aef73c34b6ed0d1789f50c9388d0eba62b56b8261433f176b58",
|
|
235
235
|
"typeScriptVersion": "3.2"
|
|
236
236
|
}
|