@types/node 18.19.87 → 18.19.88
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 v18.19/README.md +1 -1
- node v18.19/fs/promises.d.ts +5 -15
- node v18.19/package.json +2 -2
- node v18.19/tls.d.ts +3 -2
node v18.19/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v18.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, 05 May 2025 19:32:26 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
node v18.19/fs/promises.d.ts
CHANGED
|
@@ -271,36 +271,26 @@ declare module "fs/promises" {
|
|
|
271
271
|
* data will be a string.
|
|
272
272
|
*/
|
|
273
273
|
readFile(
|
|
274
|
-
options?:
|
|
275
|
-
encoding?: null | undefined
|
|
276
|
-
|
|
277
|
-
} | null,
|
|
274
|
+
options?:
|
|
275
|
+
| ({ encoding?: null | undefined } & Abortable)
|
|
276
|
+
| null,
|
|
278
277
|
): Promise<Buffer>;
|
|
279
278
|
/**
|
|
280
279
|
* Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically.
|
|
281
280
|
* The `FileHandle` must have been opened for reading.
|
|
282
|
-
* @param options An object that may contain an optional flag.
|
|
283
|
-
* If a flag is not provided, it defaults to `'r'`.
|
|
284
281
|
*/
|
|
285
282
|
readFile(
|
|
286
283
|
options:
|
|
287
|
-
| {
|
|
288
|
-
encoding: BufferEncoding;
|
|
289
|
-
flag?: OpenMode | undefined;
|
|
290
|
-
}
|
|
284
|
+
| ({ encoding: BufferEncoding } & Abortable)
|
|
291
285
|
| BufferEncoding,
|
|
292
286
|
): Promise<string>;
|
|
293
287
|
/**
|
|
294
288
|
* Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically.
|
|
295
289
|
* The `FileHandle` must have been opened for reading.
|
|
296
|
-
* @param options An object that may contain an optional flag.
|
|
297
|
-
* If a flag is not provided, it defaults to `'r'`.
|
|
298
290
|
*/
|
|
299
291
|
readFile(
|
|
300
292
|
options?:
|
|
301
|
-
| (ObjectEncodingOptions &
|
|
302
|
-
flag?: OpenMode | undefined;
|
|
303
|
-
})
|
|
293
|
+
| (ObjectEncodingOptions & Abortable)
|
|
304
294
|
| BufferEncoding
|
|
305
295
|
| null,
|
|
306
296
|
): Promise<string | Buffer>;
|
node v18.19/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "18.19.
|
|
3
|
+
"version": "18.19.88",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -220,6 +220,6 @@
|
|
|
220
220
|
"undici-types": "~5.26.4"
|
|
221
221
|
},
|
|
222
222
|
"peerDependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
223
|
+
"typesPublisherContentHash": "7bb34638fc1e35ac78e4773742bbd277a07fbd0cb5f3ad39d369c191cff3eea2",
|
|
224
224
|
"typeScriptVersion": "5.1"
|
|
225
225
|
}
|
node v18.19/tls.d.ts
CHANGED
|
@@ -636,9 +636,10 @@ declare module "tls" {
|
|
|
636
636
|
* used.
|
|
637
637
|
* @since v0.5.3
|
|
638
638
|
* @param hostname A SNI host name or wildcard (e.g. `'*'`)
|
|
639
|
-
* @param context An object containing any of the possible properties from the {@link createSecureContext} `options` arguments (e.g. `key`, `cert`, `ca`, etc)
|
|
639
|
+
* @param context An object containing any of the possible properties from the {@link createSecureContext} `options` arguments (e.g. `key`, `cert`, `ca`, etc), or a TLS context object created
|
|
640
|
+
* with {@link createSecureContext} itself.
|
|
640
641
|
*/
|
|
641
|
-
addContext(hostname: string, context: SecureContextOptions): void;
|
|
642
|
+
addContext(hostname: string, context: SecureContextOptions | SecureContext): void;
|
|
642
643
|
/**
|
|
643
644
|
* Returns the session ticket keys.
|
|
644
645
|
*
|