@types/node 20.16.15 → 20.17.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 v20.16 → node v20.17}/README.md +1 -1
- {node v20.16 → node v20.17}/package.json +2 -2
- {node v20.16 → node v20.17}/path.d.ts +9 -0
- {node v20.16 → node v20.17}/stream.d.ts +19 -0
- {node v20.16 → node v20.17}/vm.d.ts +1 -2
- {node v20.16 → node v20.17}/LICENSE +0 -0
- {node v20.16 → node v20.17}/assert/strict.d.ts +0 -0
- {node v20.16 → node v20.17}/assert.d.ts +0 -0
- {node v20.16 → node v20.17}/async_hooks.d.ts +0 -0
- {node v20.16 → node v20.17}/buffer.buffer.d.ts +0 -0
- {node v20.16 → node v20.17}/buffer.d.ts +0 -0
- {node v20.16 → node v20.17}/child_process.d.ts +0 -0
- {node v20.16 → node v20.17}/cluster.d.ts +0 -0
- {node v20.16 → node v20.17}/compatibility/disposable.d.ts +0 -0
- {node v20.16 → node v20.17}/compatibility/index.d.ts +0 -0
- {node v20.16 → node v20.17}/compatibility/indexable.d.ts +0 -0
- {node v20.16 → node v20.17}/compatibility/iterators.d.ts +0 -0
- {node v20.16 → node v20.17}/console.d.ts +0 -0
- {node v20.16 → node v20.17}/constants.d.ts +0 -0
- {node v20.16 → node v20.17}/crypto.d.ts +0 -0
- {node v20.16 → node v20.17}/dgram.d.ts +0 -0
- {node v20.16 → node v20.17}/diagnostics_channel.d.ts +0 -0
- {node v20.16 → node v20.17}/dns/promises.d.ts +0 -0
- {node v20.16 → node v20.17}/dns.d.ts +0 -0
- {node v20.16 → node v20.17}/dom-events.d.ts +0 -0
- {node v20.16 → node v20.17}/domain.d.ts +0 -0
- {node v20.16 → node v20.17}/events.d.ts +0 -0
- {node v20.16 → node v20.17}/fs/promises.d.ts +0 -0
- {node v20.16 → node v20.17}/fs.d.ts +0 -0
- {node v20.16 → node v20.17}/globals.d.ts +0 -0
- {node v20.16 → node v20.17}/globals.typedarray.d.ts +0 -0
- {node v20.16 → node v20.17}/http.d.ts +0 -0
- {node v20.16 → node v20.17}/http2.d.ts +0 -0
- {node v20.16 → node v20.17}/https.d.ts +0 -0
- {node v20.16 → node v20.17}/index.d.ts +0 -0
- {node v20.16 → node v20.17}/inspector.d.ts +0 -0
- {node v20.16 → node v20.17}/module.d.ts +0 -0
- {node v20.16 → node v20.17}/net.d.ts +0 -0
- {node v20.16 → node v20.17}/os.d.ts +0 -0
- {node v20.16 → node v20.17}/perf_hooks.d.ts +0 -0
- {node v20.16 → node v20.17}/process.d.ts +0 -0
- {node v20.16 → node v20.17}/punycode.d.ts +0 -0
- {node v20.16 → node v20.17}/querystring.d.ts +0 -0
- {node v20.16 → node v20.17}/readline/promises.d.ts +0 -0
- {node v20.16 → node v20.17}/readline.d.ts +0 -0
- {node v20.16 → node v20.17}/repl.d.ts +0 -0
- {node v20.16 → node v20.17}/sea.d.ts +0 -0
- {node v20.16 → node v20.17}/stream/consumers.d.ts +0 -0
- {node v20.16 → node v20.17}/stream/promises.d.ts +0 -0
- {node v20.16 → node v20.17}/stream/web.d.ts +0 -0
- {node v20.16 → node v20.17}/string_decoder.d.ts +0 -0
- {node v20.16 → node v20.17}/test.d.ts +0 -0
- {node v20.16 → node v20.17}/timers/promises.d.ts +0 -0
- {node v20.16 → node v20.17}/timers.d.ts +0 -0
- {node v20.16 → node v20.17}/tls.d.ts +0 -0
- {node v20.16 → node v20.17}/trace_events.d.ts +0 -0
- {node v20.16 → node v20.17}/ts5.6/buffer.buffer.d.ts +0 -0
- {node v20.16 → node v20.17}/ts5.6/globals.typedarray.d.ts +0 -0
- {node v20.16 → node v20.17}/ts5.6/index.d.ts +0 -0
- {node v20.16 → node v20.17}/tty.d.ts +0 -0
- {node v20.16 → node v20.17}/url.d.ts +0 -0
- {node v20.16 → node v20.17}/util.d.ts +0 -0
- {node v20.16 → node v20.17}/v8.d.ts +0 -0
- {node v20.16 → node v20.17}/wasi.d.ts +0 -0
- {node v20.16 → node v20.17}/worker_threads.d.ts +0 -0
- {node v20.16 → node v20.17}/zlib.d.ts +0 -0
@@ -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/v20.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Fri, 25 Oct 2024 12:43:47 GMT
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
13
13
|
|
14
14
|
# Credits
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/node",
|
3
|
-
"version": "20.
|
3
|
+
"version": "20.17.1",
|
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": "~6.19.2"
|
221
221
|
},
|
222
222
|
"peerDependencies": {},
|
223
|
-
"typesPublisherContentHash": "
|
223
|
+
"typesPublisherContentHash": "b76751733a79938f7e78a1425b8fb5d1fb2bac8f121d0cc05e642361c9c1ce88",
|
224
224
|
"typeScriptVersion": "4.8"
|
225
225
|
}
|
@@ -94,6 +94,15 @@ declare module "path" {
|
|
94
94
|
* @throws {TypeError} if any of the arguments is not a string.
|
95
95
|
*/
|
96
96
|
resolve(...paths: string[]): string;
|
97
|
+
/**
|
98
|
+
* The `path.matchesGlob()` method determines if `path` matches the `pattern`.
|
99
|
+
* @param path The path to glob-match against.
|
100
|
+
* @param pattern The glob to check the path against.
|
101
|
+
* @returns Whether or not the `path` matched the `pattern`.
|
102
|
+
* @throws {TypeError} if `path` or `pattern` are not strings.
|
103
|
+
* @since v20.17.0
|
104
|
+
*/
|
105
|
+
matchesGlob(path: string, pattern: string): boolean;
|
97
106
|
/**
|
98
107
|
* Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory.
|
99
108
|
*
|
@@ -1250,6 +1250,25 @@ declare module "stream" {
|
|
1250
1250
|
removeListener(event: "unpipe", listener: (src: Readable) => void): this;
|
1251
1251
|
removeListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
1252
1252
|
}
|
1253
|
+
/**
|
1254
|
+
* The utility function `duplexPair` returns an Array with two items,
|
1255
|
+
* each being a `Duplex` stream connected to the other side:
|
1256
|
+
*
|
1257
|
+
* ```js
|
1258
|
+
* const [ sideA, sideB ] = duplexPair();
|
1259
|
+
* ```
|
1260
|
+
*
|
1261
|
+
* Whatever is written to one stream is made readable on the other. It provides
|
1262
|
+
* behavior analogous to a network connection, where the data written by the client
|
1263
|
+
* becomes readable by the server, and vice-versa.
|
1264
|
+
*
|
1265
|
+
* The Duplex streams are symmetrical; one or the other may be used without any
|
1266
|
+
* difference in behavior.
|
1267
|
+
* @param options A value to pass to both {@link Duplex} constructors,
|
1268
|
+
* to set options such as buffering.
|
1269
|
+
* @since v20.17.0
|
1270
|
+
*/
|
1271
|
+
function duplexPair(options?: DuplexOptions): [Duplex, Duplex];
|
1253
1272
|
type TransformCallback = (error?: Error | null, data?: any) => void;
|
1254
1273
|
interface TransformOptions extends DuplexOptions {
|
1255
1274
|
construct?(this: Transform, callback: (error?: Error | null) => void): void;
|
@@ -907,13 +907,12 @@ declare module "vm" {
|
|
907
907
|
*/
|
908
908
|
namespace constants {
|
909
909
|
/**
|
910
|
-
* Stability: 1.1 - Active development
|
911
|
-
*
|
912
910
|
* A constant that can be used as the `importModuleDynamically` option to `vm.Script`
|
913
911
|
* and `vm.compileFunction()` so that Node.js uses the default ESM loader from the main
|
914
912
|
* context to load the requested module.
|
915
913
|
*
|
916
914
|
* For detailed information, see [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v20.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
|
915
|
+
* @since v20.12.0
|
917
916
|
*/
|
918
917
|
const USE_MAIN_CONTEXT_DEFAULT_LOADER: number;
|
919
918
|
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|