@types/node 20.5.0 → 20.5.1
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 +25 -0
- node/package.json +2 -2
- node/ts4.8/fs.d.ts +25 -0
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:
|
|
11
|
+
* Last updated: Fri, 18 Aug 2023 18:02:55 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
|
|
14
14
|
|
node/fs.d.ts
CHANGED
|
@@ -3900,6 +3900,31 @@ declare module 'fs' {
|
|
|
3900
3900
|
* @return The number of bytes read.
|
|
3901
3901
|
*/
|
|
3902
3902
|
export function readvSync(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): number;
|
|
3903
|
+
|
|
3904
|
+
export interface OpenAsBlobOptions {
|
|
3905
|
+
/**
|
|
3906
|
+
* An optional mime type for the blob.
|
|
3907
|
+
*
|
|
3908
|
+
* @default 'undefined'
|
|
3909
|
+
*/
|
|
3910
|
+
type?: string | undefined;
|
|
3911
|
+
}
|
|
3912
|
+
|
|
3913
|
+
/**
|
|
3914
|
+
* Returns a Blob whose data is backed by the given file.
|
|
3915
|
+
*
|
|
3916
|
+
* The file must not be modified after the `Blob` is created.
|
|
3917
|
+
* Any modifications will cause reading the `Blob` data to fail with a `DOMException` error.
|
|
3918
|
+
* Synchronous stat operations on the file when the `Blob` is created, and before each read in order to detect whether the file data has been modified on disk.
|
|
3919
|
+
*
|
|
3920
|
+
* @param path
|
|
3921
|
+
* @param [options]
|
|
3922
|
+
*
|
|
3923
|
+
* @experimental
|
|
3924
|
+
* @since v19.8.0
|
|
3925
|
+
*/
|
|
3926
|
+
export function openAsBlob(path: PathLike, options?: OpenAsBlobOptions): Promise<Blob>;
|
|
3927
|
+
|
|
3903
3928
|
export interface OpenDirOptions {
|
|
3904
3929
|
/**
|
|
3905
3930
|
* @default 'utf8'
|
node/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.5.
|
|
3
|
+
"version": "20.5.1",
|
|
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": "d0c2c116cfc5f834b73aab1d11cdb6f25f2efa45c6ac4b26899129b75cbfb0d1",
|
|
231
231
|
"typeScriptVersion": "4.3"
|
|
232
232
|
}
|
node/ts4.8/fs.d.ts
CHANGED
|
@@ -3900,6 +3900,31 @@ declare module 'fs' {
|
|
|
3900
3900
|
* @return The number of bytes read.
|
|
3901
3901
|
*/
|
|
3902
3902
|
export function readvSync(fd: number, buffers: ReadonlyArray<NodeJS.ArrayBufferView>, position?: number): number;
|
|
3903
|
+
|
|
3904
|
+
export interface OpenAsBlobOptions {
|
|
3905
|
+
/**
|
|
3906
|
+
* An optional mime type for the blob.
|
|
3907
|
+
*
|
|
3908
|
+
* @default 'undefined'
|
|
3909
|
+
*/
|
|
3910
|
+
type?: string | undefined;
|
|
3911
|
+
}
|
|
3912
|
+
|
|
3913
|
+
/**
|
|
3914
|
+
* Returns a Blob whose data is backed by the given file.
|
|
3915
|
+
*
|
|
3916
|
+
* The file must not be modified after the `Blob` is created.
|
|
3917
|
+
* Any modifications will cause reading the `Blob` data to fail with a `DOMException` error.
|
|
3918
|
+
* Synchronous stat operations on the file when the `Blob` is created, and before each read in order to detect whether the file data has been modified on disk.
|
|
3919
|
+
*
|
|
3920
|
+
* @param path
|
|
3921
|
+
* @param [options]
|
|
3922
|
+
*
|
|
3923
|
+
* @experimental
|
|
3924
|
+
* @since v19.8.0
|
|
3925
|
+
*/
|
|
3926
|
+
export function openAsBlob(path: PathLike, options?: OpenAsBlobOptions): Promise<Blob>;
|
|
3927
|
+
|
|
3903
3928
|
export interface OpenDirOptions {
|
|
3904
3929
|
/**
|
|
3905
3930
|
* @default 'utf8'
|