@types/node 16.18.45 → 16.18.47
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 v16.18/README.md +1 -1
- node v16.18/inspector.d.ts +0 -1
- node v16.18/module.d.ts +12 -5
- node v16.18/package.json +2 -2
- node v16.18/ts4.8/inspector.d.ts +0 -1
- node v16.18/ts4.8/module.d.ts +12 -5
node v16.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/v16.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 01 Sep 2023 20:33:27 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`
|
|
14
14
|
|
node v16.18/inspector.d.ts
CHANGED
node v16.18/module.d.ts
CHANGED
|
@@ -79,6 +79,9 @@ declare module 'module' {
|
|
|
79
79
|
*/
|
|
80
80
|
findEntry(line: number, column: number): SourceMapping;
|
|
81
81
|
}
|
|
82
|
+
interface ImportAssertions extends NodeJS.Dict<string> {
|
|
83
|
+
type?: string | undefined;
|
|
84
|
+
}
|
|
82
85
|
type ModuleFormat = 'builtin' | 'commonjs' | 'json' | 'module' | 'wasm';
|
|
83
86
|
type ModuleSource = string | ArrayBuffer | NodeJS.TypedArray;
|
|
84
87
|
interface GlobalPreloadContext {
|
|
@@ -100,7 +103,7 @@ declare module 'module' {
|
|
|
100
103
|
/**
|
|
101
104
|
* An object whose key-value pairs represent the assertions for the module to import
|
|
102
105
|
*/
|
|
103
|
-
importAssertions:
|
|
106
|
+
importAssertions: ImportAssertions;
|
|
104
107
|
/**
|
|
105
108
|
* The module importing this one, or undefined if this is the Node.js entry point
|
|
106
109
|
*/
|
|
@@ -114,7 +117,7 @@ declare module 'module' {
|
|
|
114
117
|
/**
|
|
115
118
|
* The import assertions to use when caching the module (optional; if excluded the input will be used)
|
|
116
119
|
*/
|
|
117
|
-
importAssertions?:
|
|
120
|
+
importAssertions?: ImportAssertions | undefined;
|
|
118
121
|
/**
|
|
119
122
|
* A signal that this hook intends to terminate the chain of `resolve` hooks.
|
|
120
123
|
* @default false
|
|
@@ -137,7 +140,7 @@ declare module 'module' {
|
|
|
137
140
|
type ResolveHook = (
|
|
138
141
|
specifier: string,
|
|
139
142
|
context: ResolveHookContext,
|
|
140
|
-
nextResolve: (specifier: string, context?: ResolveHookContext) => ResolveFnOutput
|
|
143
|
+
nextResolve: (specifier: string, context?: ResolveHookContext) => ResolveFnOutput | Promise<ResolveFnOutput>
|
|
141
144
|
) => ResolveFnOutput | Promise<ResolveFnOutput>;
|
|
142
145
|
interface LoadHookContext {
|
|
143
146
|
/**
|
|
@@ -151,7 +154,7 @@ declare module 'module' {
|
|
|
151
154
|
/**
|
|
152
155
|
* An object whose key-value pairs represent the assertions for the module to import
|
|
153
156
|
*/
|
|
154
|
-
importAssertions:
|
|
157
|
+
importAssertions: ImportAssertions;
|
|
155
158
|
}
|
|
156
159
|
interface LoadFnOutput {
|
|
157
160
|
format: ModuleFormat;
|
|
@@ -173,7 +176,11 @@ declare module 'module' {
|
|
|
173
176
|
* @param context Metadata about the module
|
|
174
177
|
* @param nextLoad The subsequent `load` hook in the chain, or the Node.js default `load` hook after the last user-supplied `load` hook
|
|
175
178
|
*/
|
|
176
|
-
type LoadHook = (
|
|
179
|
+
type LoadHook = (
|
|
180
|
+
url: string,
|
|
181
|
+
context: LoadHookContext,
|
|
182
|
+
nextLoad: (url: string, context?: LoadHookContext) => LoadFnOutput | Promise<LoadFnOutput>
|
|
183
|
+
) => LoadFnOutput | Promise<LoadFnOutput>;
|
|
177
184
|
}
|
|
178
185
|
interface Module extends NodeModule {}
|
|
179
186
|
class Module {
|
node v16.18/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "16.18.
|
|
3
|
+
"version": "16.18.47",
|
|
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": "a12fe679deaca1aa4cdfe9cd67fa38c9b2e83c3bbe616d61232c2cc15952db32",
|
|
231
231
|
"typeScriptVersion": "4.3"
|
|
232
232
|
}
|
node v16.18/ts4.8/inspector.d.ts
CHANGED
node v16.18/ts4.8/module.d.ts
CHANGED
|
@@ -79,6 +79,9 @@ declare module 'module' {
|
|
|
79
79
|
*/
|
|
80
80
|
findEntry(line: number, column: number): SourceMapping;
|
|
81
81
|
}
|
|
82
|
+
interface ImportAssertions extends NodeJS.Dict<string> {
|
|
83
|
+
type?: string | undefined;
|
|
84
|
+
}
|
|
82
85
|
type ModuleFormat = 'builtin' | 'commonjs' | 'json' | 'module' | 'wasm';
|
|
83
86
|
type ModuleSource = string | ArrayBuffer | NodeJS.TypedArray;
|
|
84
87
|
interface GlobalPreloadContext {
|
|
@@ -100,7 +103,7 @@ declare module 'module' {
|
|
|
100
103
|
/**
|
|
101
104
|
* An object whose key-value pairs represent the assertions for the module to import
|
|
102
105
|
*/
|
|
103
|
-
importAssertions:
|
|
106
|
+
importAssertions: ImportAssertions;
|
|
104
107
|
/**
|
|
105
108
|
* The module importing this one, or undefined if this is the Node.js entry point
|
|
106
109
|
*/
|
|
@@ -114,7 +117,7 @@ declare module 'module' {
|
|
|
114
117
|
/**
|
|
115
118
|
* The import assertions to use when caching the module (optional; if excluded the input will be used)
|
|
116
119
|
*/
|
|
117
|
-
importAssertions?:
|
|
120
|
+
importAssertions?: ImportAssertions | undefined;
|
|
118
121
|
/**
|
|
119
122
|
* A signal that this hook intends to terminate the chain of `resolve` hooks.
|
|
120
123
|
* @default false
|
|
@@ -137,7 +140,7 @@ declare module 'module' {
|
|
|
137
140
|
type ResolveHook = (
|
|
138
141
|
specifier: string,
|
|
139
142
|
context: ResolveHookContext,
|
|
140
|
-
nextResolve: (specifier: string, context?: ResolveHookContext) => ResolveFnOutput
|
|
143
|
+
nextResolve: (specifier: string, context?: ResolveHookContext) => ResolveFnOutput | Promise<ResolveFnOutput>
|
|
141
144
|
) => ResolveFnOutput | Promise<ResolveFnOutput>;
|
|
142
145
|
interface LoadHookContext {
|
|
143
146
|
/**
|
|
@@ -151,7 +154,7 @@ declare module 'module' {
|
|
|
151
154
|
/**
|
|
152
155
|
* An object whose key-value pairs represent the assertions for the module to import
|
|
153
156
|
*/
|
|
154
|
-
importAssertions:
|
|
157
|
+
importAssertions: ImportAssertions;
|
|
155
158
|
}
|
|
156
159
|
interface LoadFnOutput {
|
|
157
160
|
format: ModuleFormat;
|
|
@@ -173,7 +176,11 @@ declare module 'module' {
|
|
|
173
176
|
* @param context Metadata about the module
|
|
174
177
|
* @param nextLoad The subsequent `load` hook in the chain, or the Node.js default `load` hook after the last user-supplied `load` hook
|
|
175
178
|
*/
|
|
176
|
-
type LoadHook = (
|
|
179
|
+
type LoadHook = (
|
|
180
|
+
url: string,
|
|
181
|
+
context: LoadHookContext,
|
|
182
|
+
nextLoad: (url: string, context?: LoadHookContext) => LoadFnOutput | Promise<LoadFnOutput>
|
|
183
|
+
) => LoadFnOutput | Promise<LoadFnOutput>;
|
|
177
184
|
}
|
|
178
185
|
interface Module extends NodeModule {}
|
|
179
186
|
class Module {
|