@types/node 22.10.4 → 22.10.6
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/module.d.ts +10 -3
- node/package.json +2 -2
node/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.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Mon, 13 Jan 2025 19:02:16 GMT
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
13
13
|
|
14
14
|
# Credits
|
node/module.d.ts
CHANGED
@@ -125,7 +125,14 @@ declare module "module" {
|
|
125
125
|
interface ImportAttributes extends NodeJS.Dict<string> {
|
126
126
|
type?: string | undefined;
|
127
127
|
}
|
128
|
-
type ModuleFormat =
|
128
|
+
type ModuleFormat =
|
129
|
+
| "builtin"
|
130
|
+
| "commonjs"
|
131
|
+
| "commonjs-typescript"
|
132
|
+
| "json"
|
133
|
+
| "module"
|
134
|
+
| "module-typescript"
|
135
|
+
| "wasm";
|
129
136
|
type ModuleSource = string | ArrayBuffer | NodeJS.TypedArray;
|
130
137
|
interface GlobalPreloadContext {
|
131
138
|
port: MessagePort;
|
@@ -196,7 +203,7 @@ declare module "module" {
|
|
196
203
|
context: ResolveHookContext,
|
197
204
|
nextResolve: (
|
198
205
|
specifier: string,
|
199
|
-
context?: ResolveHookContext
|
206
|
+
context?: Partial<ResolveHookContext>,
|
200
207
|
) => ResolveFnOutput | Promise<ResolveFnOutput>,
|
201
208
|
) => ResolveFnOutput | Promise<ResolveFnOutput>;
|
202
209
|
interface LoadHookContext {
|
@@ -236,7 +243,7 @@ declare module "module" {
|
|
236
243
|
type LoadHook = (
|
237
244
|
url: string,
|
238
245
|
context: LoadHookContext,
|
239
|
-
nextLoad: (url: string, context?: LoadHookContext) => LoadFnOutput | Promise<LoadFnOutput>,
|
246
|
+
nextLoad: (url: string, context?: Partial<LoadHookContext>) => LoadFnOutput | Promise<LoadFnOutput>,
|
240
247
|
) => LoadFnOutput | Promise<LoadFnOutput>;
|
241
248
|
namespace constants {
|
242
249
|
/**
|
node/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/node",
|
3
|
-
"version": "22.10.
|
3
|
+
"version": "22.10.6",
|
4
4
|
"description": "TypeScript definitions for node",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
6
6
|
"license": "MIT",
|
@@ -215,6 +215,6 @@
|
|
215
215
|
"undici-types": "~6.20.0"
|
216
216
|
},
|
217
217
|
"peerDependencies": {},
|
218
|
-
"typesPublisherContentHash": "
|
218
|
+
"typesPublisherContentHash": "064b408cecf149e1d2fad422d32eb2883b56a19a971364443456d1c3b3ddc467",
|
219
219
|
"typeScriptVersion": "5.0"
|
220
220
|
}
|