@types/node 14.18.55 → 14.18.56
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 v14.18/README.md +1 -1
- node v14.18/fs.d.ts +26 -20
- node v14.18/package.json +2 -2
- node v14.18/ts4.8/fs.d.ts +28 -22
node v14.18/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/v14.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Wed, 23 Aug 2023 21:03:09 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`
|
|
14
14
|
|
node v14.18/fs.d.ts
CHANGED
|
@@ -2071,41 +2071,47 @@ declare module 'fs' {
|
|
|
2071
2071
|
*/
|
|
2072
2072
|
export function accessSync(path: PathLike, mode?: number): void;
|
|
2073
2073
|
|
|
2074
|
-
|
|
2075
|
-
* Returns a new `ReadStream` object.
|
|
2076
|
-
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2077
|
-
* URL support is _experimental_.
|
|
2078
|
-
*/
|
|
2079
|
-
export function createReadStream(path: PathLike, options?: BufferEncoding | {
|
|
2074
|
+
interface StreamOptions {
|
|
2080
2075
|
flags?: string | undefined;
|
|
2081
2076
|
encoding?: BufferEncoding | undefined;
|
|
2082
2077
|
fd?: number | undefined;
|
|
2083
2078
|
mode?: number | undefined;
|
|
2084
2079
|
autoClose?: boolean | undefined;
|
|
2085
|
-
/**
|
|
2086
|
-
* @default false
|
|
2087
|
-
*/
|
|
2088
2080
|
emitClose?: boolean | undefined;
|
|
2089
2081
|
start?: number | undefined;
|
|
2082
|
+
}
|
|
2083
|
+
interface FSImplementation {
|
|
2084
|
+
open: (...args: any[]) => any;
|
|
2085
|
+
close: (...args: any[]) => any;
|
|
2086
|
+
}
|
|
2087
|
+
interface CreateReadStreamFSImplementation extends FSImplementation {
|
|
2088
|
+
read: (...args: any[]) => any;
|
|
2089
|
+
}
|
|
2090
|
+
interface CreateWriteStreamFSImplementation extends FSImplementation {
|
|
2091
|
+
write: (...args: any[]) => any;
|
|
2092
|
+
writev?: (...args: any[]) => any;
|
|
2093
|
+
}
|
|
2094
|
+
interface ReadStreamOptions extends StreamOptions {
|
|
2095
|
+
fs?: CreateReadStreamFSImplementation | null | undefined;
|
|
2090
2096
|
end?: number | undefined;
|
|
2091
2097
|
highWaterMark?: number | undefined;
|
|
2092
|
-
}
|
|
2098
|
+
}
|
|
2099
|
+
interface WriteStreamOptions extends StreamOptions {
|
|
2100
|
+
fs?: CreateWriteStreamFSImplementation | null | undefined;
|
|
2101
|
+
}
|
|
2102
|
+
/**
|
|
2103
|
+
* Returns a new `ReadStream` object.
|
|
2104
|
+
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2105
|
+
* URL support is _experimental_.
|
|
2106
|
+
*/
|
|
2107
|
+
export function createReadStream(path: PathLike, options?: BufferEncoding | ReadStreamOptions): ReadStream;
|
|
2093
2108
|
|
|
2094
2109
|
/**
|
|
2095
2110
|
* Returns a new `WriteStream` object.
|
|
2096
2111
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2097
2112
|
* URL support is _experimental_.
|
|
2098
2113
|
*/
|
|
2099
|
-
export function createWriteStream(path: PathLike, options?: BufferEncoding |
|
|
2100
|
-
flags?: string | undefined;
|
|
2101
|
-
encoding?: BufferEncoding | undefined;
|
|
2102
|
-
fd?: number | undefined;
|
|
2103
|
-
mode?: number | undefined;
|
|
2104
|
-
autoClose?: boolean | undefined;
|
|
2105
|
-
emitClose?: boolean | undefined;
|
|
2106
|
-
start?: number | undefined;
|
|
2107
|
-
highWaterMark?: number | undefined;
|
|
2108
|
-
}): WriteStream;
|
|
2114
|
+
export function createWriteStream(path: PathLike, options?: BufferEncoding | WriteStreamOptions): WriteStream;
|
|
2109
2115
|
|
|
2110
2116
|
/**
|
|
2111
2117
|
* Asynchronous fdatasync(2) - synchronize a file's in-core state with storage device.
|
node v14.18/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "14.18.
|
|
3
|
+
"version": "14.18.56",
|
|
4
4
|
"description": "TypeScript definitions for Node.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -227,6 +227,6 @@
|
|
|
227
227
|
},
|
|
228
228
|
"scripts": {},
|
|
229
229
|
"dependencies": {},
|
|
230
|
-
"typesPublisherContentHash": "
|
|
230
|
+
"typesPublisherContentHash": "8397a212428423b0f4e5208b6d3b560375e3e01b451b8747a60f32037a06dbc6",
|
|
231
231
|
"typeScriptVersion": "4.3"
|
|
232
232
|
}
|
node v14.18/ts4.8/fs.d.ts
CHANGED
|
@@ -2071,41 +2071,47 @@ declare module 'fs' {
|
|
|
2071
2071
|
*/
|
|
2072
2072
|
export function accessSync(path: PathLike, mode?: number): void;
|
|
2073
2073
|
|
|
2074
|
-
|
|
2075
|
-
* Returns a new `ReadStream` object.
|
|
2076
|
-
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2077
|
-
* URL support is _experimental_.
|
|
2078
|
-
*/
|
|
2079
|
-
export function createReadStream(path: PathLike, options?: BufferEncoding | {
|
|
2074
|
+
interface StreamOptions {
|
|
2080
2075
|
flags?: string | undefined;
|
|
2081
|
-
encoding?: BufferEncoding | undefined;
|
|
2082
|
-
fd?: number | undefined;
|
|
2076
|
+
encoding?: BufferEncoding | null | undefined;
|
|
2077
|
+
fd?: number | promises.FileHandle | null | undefined;
|
|
2083
2078
|
mode?: number | undefined;
|
|
2084
2079
|
autoClose?: boolean | undefined;
|
|
2085
|
-
/**
|
|
2086
|
-
* @default false
|
|
2087
|
-
*/
|
|
2088
2080
|
emitClose?: boolean | undefined;
|
|
2089
2081
|
start?: number | undefined;
|
|
2082
|
+
}
|
|
2083
|
+
interface FSImplementation {
|
|
2084
|
+
open: (...args: any[]) => any;
|
|
2085
|
+
close: (...args: any[]) => any;
|
|
2086
|
+
}
|
|
2087
|
+
interface CreateReadStreamFSImplementation extends FSImplementation {
|
|
2088
|
+
read: (...args: any[]) => any;
|
|
2089
|
+
}
|
|
2090
|
+
interface CreateWriteStreamFSImplementation extends FSImplementation {
|
|
2091
|
+
write: (...args: any[]) => any;
|
|
2092
|
+
writev?: (...args: any[]) => any;
|
|
2093
|
+
}
|
|
2094
|
+
interface ReadStreamOptions extends StreamOptions {
|
|
2095
|
+
fs?: CreateReadStreamFSImplementation | null | undefined;
|
|
2090
2096
|
end?: number | undefined;
|
|
2091
2097
|
highWaterMark?: number | undefined;
|
|
2092
|
-
}
|
|
2098
|
+
}
|
|
2099
|
+
interface WriteStreamOptions extends StreamOptions {
|
|
2100
|
+
fs?: CreateWriteStreamFSImplementation | null | undefined;
|
|
2101
|
+
}
|
|
2102
|
+
/**
|
|
2103
|
+
* Returns a new `ReadStream` object.
|
|
2104
|
+
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2105
|
+
* URL support is _experimental_.
|
|
2106
|
+
*/
|
|
2107
|
+
export function createReadStream(path: PathLike, options?: BufferEncoding | ReadStreamOptions): ReadStream;
|
|
2093
2108
|
|
|
2094
2109
|
/**
|
|
2095
2110
|
* Returns a new `WriteStream` object.
|
|
2096
2111
|
* @param path A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
2097
2112
|
* URL support is _experimental_.
|
|
2098
2113
|
*/
|
|
2099
|
-
export function createWriteStream(path: PathLike, options?: BufferEncoding |
|
|
2100
|
-
flags?: string | undefined;
|
|
2101
|
-
encoding?: BufferEncoding | undefined;
|
|
2102
|
-
fd?: number | undefined;
|
|
2103
|
-
mode?: number | undefined;
|
|
2104
|
-
autoClose?: boolean | undefined;
|
|
2105
|
-
emitClose?: boolean | undefined;
|
|
2106
|
-
start?: number | undefined;
|
|
2107
|
-
highWaterMark?: number | undefined;
|
|
2108
|
-
}): WriteStream;
|
|
2114
|
+
export function createWriteStream(path: PathLike, options?: BufferEncoding | WriteStreamOptions): WriteStream;
|
|
2109
2115
|
|
|
2110
2116
|
/**
|
|
2111
2117
|
* Asynchronous fdatasync(2) - synchronize a file's in-core state with storage device.
|