@ts-type/package-dts 2.0.8 → 3.0.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.
- package/CHANGELOG.md +27 -0
- package/README.md +39 -14
- package/eslintrc-json.js +1 -1
- package/eslintrc-json.js.map +1 -1
- package/index.d.ts +17 -1
- package/index.js +18 -3
- package/index.js.map +1 -1
- package/lerna-json.js +2 -15
- package/lerna-json.js.map +1 -1
- package/lib/package-json/exports.js.map +1 -1
- package/lib/package-json/publishConfig.js +1 -1
- package/lib/package-json/publishConfig.js.map +1 -1
- package/lib/package-json/types.d.ts +28 -0
- package/lib/package-json/types.js +14 -2
- package/lib/package-json/types.js.map +1 -1
- package/package-json.d.ts +1 -1
- package/package-json.js +2 -15
- package/package-json.js.map +1 -1
- package/package.json +10 -4
- package/schema/eslintrc.json +29 -17
- package/schema/lerna.json +1 -1
- package/schema/package.json +530 -28
- package/schema/travis.json +17 -10
- package/script/index.js +2 -4
- package/script/index.js.map +1 -1
- package/script/util.js +7 -10
- package/script/util.js.map +1 -1
- package/types/eslintrc.json.d.ts +7496 -9
- package/types/lerna.json.d.ts +1 -1
- package/types/package.json.d.ts +27813 -7682
- package/types/travis.json.d.ts +15 -10
- package/types/tsconfig.json.d.ts +1298 -326
package/types/tsconfig.json.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* eslint-disable */
|
|
2
2
|
/**
|
|
3
3
|
* This file was automatically generated by json-schema-to-typescript.
|
|
4
4
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
@@ -13,27 +13,34 @@ export type JSONSchemaForTheTypeScriptCompilerSConfigurationFile = CompilerOptio
|
|
|
13
13
|
BuildOptionsDefinition &
|
|
14
14
|
TsNodeDefinition &
|
|
15
15
|
(FilesDefinition | ExcludeDefinition | IncludeDefinition | ReferencesDefinition);
|
|
16
|
-
|
|
17
|
-
export interface CompilerOptionsDefinition {
|
|
18
|
-
compilerOptions?: CompilerOptions;
|
|
19
|
-
[k: string]: unknown;
|
|
20
|
-
}
|
|
21
16
|
/**
|
|
22
17
|
* Instructs the TypeScript compiler how to compile .ts files.
|
|
23
18
|
*/
|
|
24
|
-
export
|
|
19
|
+
export type CompilerOptions = {
|
|
20
|
+
/**
|
|
21
|
+
* Enable importing files with any extension, provided a declaration file is present.
|
|
22
|
+
*/
|
|
23
|
+
allowArbitraryExtensions?: boolean | null;
|
|
24
|
+
/**
|
|
25
|
+
* Allow imports to include TypeScript file extensions. Requires `--moduleResolution bundler` and either `--noEmit` or `--emitDeclarationOnly` to be set.
|
|
26
|
+
*/
|
|
27
|
+
allowImportingTsExtensions?: boolean | null;
|
|
25
28
|
/**
|
|
26
29
|
* No longer supported. In early versions, manually set the text encoding for reading files.
|
|
27
30
|
*/
|
|
28
|
-
charset?: string;
|
|
31
|
+
charset?: string | null;
|
|
29
32
|
/**
|
|
30
33
|
* Enable constraints that allow a TypeScript project to be used with project references.
|
|
31
34
|
*/
|
|
32
|
-
composite?: boolean;
|
|
35
|
+
composite?: boolean | null;
|
|
36
|
+
/**
|
|
37
|
+
* Conditions to set in addition to the resolver-specific defaults when resolving imports.
|
|
38
|
+
*/
|
|
39
|
+
customConditions?: string[] | null;
|
|
33
40
|
/**
|
|
34
41
|
* Generate .d.ts files from TypeScript and JavaScript files in your project.
|
|
35
42
|
*/
|
|
36
|
-
declaration?: boolean;
|
|
43
|
+
declaration?: boolean | null;
|
|
37
44
|
/**
|
|
38
45
|
* Specify the output directory for generated declaration files.
|
|
39
46
|
*/
|
|
@@ -41,43 +48,47 @@ export interface CompilerOptions {
|
|
|
41
48
|
/**
|
|
42
49
|
* Output compiler performance information after building.
|
|
43
50
|
*/
|
|
44
|
-
diagnostics?: boolean;
|
|
51
|
+
diagnostics?: boolean | null;
|
|
45
52
|
/**
|
|
46
53
|
* Reduce the number of projects loaded automatically by TypeScript.
|
|
47
54
|
*/
|
|
48
|
-
disableReferencedProjectLoad?: boolean;
|
|
55
|
+
disableReferencedProjectLoad?: boolean | null;
|
|
49
56
|
/**
|
|
50
|
-
* Enforces using indexed accessors for keys declared using an indexed type
|
|
57
|
+
* Enforces using indexed accessors for keys declared using an indexed type.
|
|
51
58
|
*/
|
|
52
|
-
noPropertyAccessFromIndexSignature?: boolean;
|
|
59
|
+
noPropertyAccessFromIndexSignature?: boolean | null;
|
|
53
60
|
/**
|
|
54
61
|
* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.
|
|
55
62
|
*/
|
|
56
|
-
emitBOM?: boolean;
|
|
63
|
+
emitBOM?: boolean | null;
|
|
57
64
|
/**
|
|
58
65
|
* Only output d.ts files and not JavaScript files.
|
|
59
66
|
*/
|
|
60
|
-
emitDeclarationOnly?: boolean;
|
|
67
|
+
emitDeclarationOnly?: boolean | null;
|
|
61
68
|
/**
|
|
62
|
-
*
|
|
69
|
+
* Do not allow runtime constructs that are not part of ECMAScript.
|
|
63
70
|
*/
|
|
64
|
-
|
|
71
|
+
erasableSyntaxOnly?: boolean | null;
|
|
72
|
+
/**
|
|
73
|
+
* Interpret optional property types as written, rather than adding `undefined`.
|
|
74
|
+
*/
|
|
75
|
+
exactOptionalPropertyTypes?: boolean | null;
|
|
65
76
|
/**
|
|
66
77
|
* Enable incremental compilation. Requires TypeScript version 3.4 or later.
|
|
67
78
|
*/
|
|
68
|
-
incremental?: boolean;
|
|
79
|
+
incremental?: boolean | null;
|
|
69
80
|
/**
|
|
70
|
-
* Specify the
|
|
81
|
+
* Specify the path to .tsbuildinfo incremental compilation file.
|
|
71
82
|
*/
|
|
72
|
-
tsBuildInfoFile?: string;
|
|
83
|
+
tsBuildInfoFile?: string | null;
|
|
73
84
|
/**
|
|
74
85
|
* Include sourcemap files inside the emitted JavaScript.
|
|
75
86
|
*/
|
|
76
|
-
inlineSourceMap?: boolean;
|
|
87
|
+
inlineSourceMap?: boolean | null;
|
|
77
88
|
/**
|
|
78
89
|
* Include source code in the sourcemaps inside the emitted JavaScript.
|
|
79
90
|
*/
|
|
80
|
-
inlineSources?: boolean;
|
|
91
|
+
inlineSources?: boolean | null;
|
|
81
92
|
/**
|
|
82
93
|
* Specify what JSX code is generated.
|
|
83
94
|
*/
|
|
@@ -85,60 +96,129 @@ export interface CompilerOptions {
|
|
|
85
96
|
/**
|
|
86
97
|
* Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit.
|
|
87
98
|
*/
|
|
88
|
-
reactNamespace?: string;
|
|
99
|
+
reactNamespace?: string | null;
|
|
89
100
|
/**
|
|
90
|
-
* Specify the JSX factory function used when targeting React JSX emit, e.g.
|
|
101
|
+
* Specify the JSX factory function used when targeting React JSX emit, e.g. `React.createElement` or `h`.
|
|
91
102
|
*/
|
|
92
|
-
jsxFactory?: string;
|
|
103
|
+
jsxFactory?: string | null;
|
|
93
104
|
/**
|
|
94
|
-
* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g.
|
|
105
|
+
* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. `React.Fragment` or `Fragment`.
|
|
95
106
|
*/
|
|
96
|
-
jsxFragmentFactory?: string;
|
|
107
|
+
jsxFragmentFactory?: string | null;
|
|
97
108
|
/**
|
|
98
|
-
* Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx
|
|
109
|
+
* Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.
|
|
99
110
|
*/
|
|
100
|
-
jsxImportSource?: string;
|
|
111
|
+
jsxImportSource?: string | null;
|
|
101
112
|
/**
|
|
102
113
|
* Print all of the files read during the compilation.
|
|
103
114
|
*/
|
|
104
|
-
listFiles?: boolean;
|
|
115
|
+
listFiles?: boolean | null;
|
|
105
116
|
/**
|
|
106
117
|
* Specify the location where debugger should locate map files instead of generated locations.
|
|
107
118
|
*/
|
|
108
|
-
mapRoot?: string;
|
|
119
|
+
mapRoot?: string | null;
|
|
109
120
|
/**
|
|
110
121
|
* Specify what module code is generated.
|
|
111
122
|
*/
|
|
112
123
|
module?: (
|
|
113
124
|
| (
|
|
114
|
-
| "
|
|
115
|
-
| "
|
|
116
|
-
| "
|
|
117
|
-
| "
|
|
118
|
-
| "
|
|
119
|
-
| "
|
|
120
|
-
| "
|
|
121
|
-
| "
|
|
122
|
-
| "
|
|
123
|
-
| "
|
|
124
|
-
| "
|
|
125
|
-
| "
|
|
125
|
+
| "commonjs"
|
|
126
|
+
| "amd"
|
|
127
|
+
| "system"
|
|
128
|
+
| "umd"
|
|
129
|
+
| "es6"
|
|
130
|
+
| "es2015"
|
|
131
|
+
| "es2020"
|
|
132
|
+
| "esnext"
|
|
133
|
+
| "none"
|
|
134
|
+
| "es2022"
|
|
135
|
+
| "node16"
|
|
136
|
+
| "node18"
|
|
137
|
+
| "node20"
|
|
138
|
+
| "nodenext"
|
|
139
|
+
| "preserve"
|
|
126
140
|
)
|
|
127
141
|
| {
|
|
128
142
|
[k: string]: unknown;
|
|
129
143
|
}
|
|
130
144
|
) &
|
|
131
|
-
|
|
145
|
+
(
|
|
146
|
+
| ((
|
|
147
|
+
| (
|
|
148
|
+
| "commonjs"
|
|
149
|
+
| "amd"
|
|
150
|
+
| "system"
|
|
151
|
+
| "umd"
|
|
152
|
+
| "es6"
|
|
153
|
+
| "es2015"
|
|
154
|
+
| "es2020"
|
|
155
|
+
| "esnext"
|
|
156
|
+
| "none"
|
|
157
|
+
| "es2022"
|
|
158
|
+
| "node16"
|
|
159
|
+
| "node18"
|
|
160
|
+
| "node20"
|
|
161
|
+
| "nodenext"
|
|
162
|
+
| "preserve"
|
|
163
|
+
)
|
|
164
|
+
| {
|
|
165
|
+
[k: string]: unknown;
|
|
166
|
+
}
|
|
167
|
+
) &
|
|
168
|
+
string)
|
|
169
|
+
| ((
|
|
170
|
+
| (
|
|
171
|
+
| "commonjs"
|
|
172
|
+
| "amd"
|
|
173
|
+
| "system"
|
|
174
|
+
| "umd"
|
|
175
|
+
| "es6"
|
|
176
|
+
| "es2015"
|
|
177
|
+
| "es2020"
|
|
178
|
+
| "esnext"
|
|
179
|
+
| "none"
|
|
180
|
+
| "es2022"
|
|
181
|
+
| "node16"
|
|
182
|
+
| "node18"
|
|
183
|
+
| "node20"
|
|
184
|
+
| "nodenext"
|
|
185
|
+
| "preserve"
|
|
186
|
+
)
|
|
187
|
+
| {
|
|
188
|
+
[k: string]: unknown;
|
|
189
|
+
}
|
|
190
|
+
) &
|
|
191
|
+
null)
|
|
192
|
+
);
|
|
132
193
|
/**
|
|
133
194
|
* Specify how TypeScript looks up a file from a given module specifier.
|
|
134
195
|
*/
|
|
135
196
|
moduleResolution?: (
|
|
136
|
-
| ("
|
|
197
|
+
| ("classic" | "node" | "node10" | "node16" | "nodenext" | "bundler")
|
|
137
198
|
| {
|
|
138
199
|
[k: string]: unknown;
|
|
139
200
|
}
|
|
140
201
|
) &
|
|
141
|
-
|
|
202
|
+
(
|
|
203
|
+
| ((
|
|
204
|
+
| ("classic" | "node" | "node10" | "node16" | "nodenext" | "bundler")
|
|
205
|
+
| {
|
|
206
|
+
[k: string]: unknown;
|
|
207
|
+
}
|
|
208
|
+
) &
|
|
209
|
+
string)
|
|
210
|
+
| ((
|
|
211
|
+
| ("classic" | "node" | "node10" | "node16" | "nodenext" | "bundler")
|
|
212
|
+
| {
|
|
213
|
+
[k: string]: unknown;
|
|
214
|
+
}
|
|
215
|
+
) &
|
|
216
|
+
null)
|
|
217
|
+
);
|
|
218
|
+
/**
|
|
219
|
+
* List of file name suffixes to search when resolving a module.
|
|
220
|
+
*/
|
|
221
|
+
moduleSuffixes?: string[] | null;
|
|
142
222
|
/**
|
|
143
223
|
* Set the newline character for emitting files.
|
|
144
224
|
*/
|
|
@@ -148,146 +228,216 @@ export interface CompilerOptions {
|
|
|
148
228
|
[k: string]: unknown;
|
|
149
229
|
}
|
|
150
230
|
) &
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
231
|
+
(
|
|
232
|
+
| ((
|
|
233
|
+
| ("crlf" | "lf")
|
|
234
|
+
| {
|
|
235
|
+
[k: string]: unknown;
|
|
236
|
+
}
|
|
237
|
+
) &
|
|
238
|
+
string)
|
|
239
|
+
| ((
|
|
240
|
+
| ("crlf" | "lf")
|
|
241
|
+
| {
|
|
242
|
+
[k: string]: unknown;
|
|
243
|
+
}
|
|
244
|
+
) &
|
|
245
|
+
null)
|
|
246
|
+
);
|
|
247
|
+
/**
|
|
248
|
+
* Disable emitting files from a compilation.
|
|
249
|
+
*/
|
|
250
|
+
noEmit?: boolean | null;
|
|
156
251
|
/**
|
|
157
252
|
* Disable generating custom helper functions like `__extends` in compiled output.
|
|
158
253
|
*/
|
|
159
|
-
noEmitHelpers?: boolean;
|
|
254
|
+
noEmitHelpers?: boolean | null;
|
|
160
255
|
/**
|
|
161
256
|
* Disable emitting files if any type checking errors are reported.
|
|
162
257
|
*/
|
|
163
|
-
noEmitOnError?: boolean;
|
|
258
|
+
noEmitOnError?: boolean | null;
|
|
164
259
|
/**
|
|
165
|
-
* Enable error reporting for expressions and declarations with an implied `any` type
|
|
260
|
+
* Enable error reporting for expressions and declarations with an implied `any` type.
|
|
166
261
|
*/
|
|
167
|
-
noImplicitAny?: boolean;
|
|
262
|
+
noImplicitAny?: boolean | null;
|
|
168
263
|
/**
|
|
169
264
|
* Enable error reporting when `this` is given the type `any`.
|
|
170
265
|
*/
|
|
171
|
-
noImplicitThis?: boolean;
|
|
266
|
+
noImplicitThis?: boolean | null;
|
|
172
267
|
/**
|
|
173
|
-
* Enable error reporting when
|
|
268
|
+
* Enable error reporting when local variables aren't read.
|
|
174
269
|
*/
|
|
175
|
-
noUnusedLocals?: boolean;
|
|
270
|
+
noUnusedLocals?: boolean | null;
|
|
176
271
|
/**
|
|
177
|
-
* Raise an error when a function parameter isn't read
|
|
272
|
+
* Raise an error when a function parameter isn't read.
|
|
178
273
|
*/
|
|
179
|
-
noUnusedParameters?: boolean;
|
|
274
|
+
noUnusedParameters?: boolean | null;
|
|
180
275
|
/**
|
|
181
276
|
* Disable including any library files, including the default lib.d.ts.
|
|
182
277
|
*/
|
|
183
|
-
noLib?: boolean;
|
|
278
|
+
noLib?: boolean | null;
|
|
184
279
|
/**
|
|
185
280
|
* Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project.
|
|
186
281
|
*/
|
|
187
|
-
noResolve?: boolean;
|
|
282
|
+
noResolve?: boolean | null;
|
|
188
283
|
/**
|
|
189
284
|
* Disable strict checking of generic signatures in function types.
|
|
190
285
|
*/
|
|
191
|
-
noStrictGenericChecks?: boolean;
|
|
286
|
+
noStrictGenericChecks?: boolean | null;
|
|
287
|
+
/**
|
|
288
|
+
* Deprecated setting. Use `outFile` instead.
|
|
289
|
+
*/
|
|
290
|
+
out?: string | null;
|
|
192
291
|
/**
|
|
193
292
|
* Skip type checking .d.ts files that are included with TypeScript.
|
|
194
293
|
*/
|
|
195
|
-
skipDefaultLibCheck?: boolean;
|
|
294
|
+
skipDefaultLibCheck?: boolean | null;
|
|
196
295
|
/**
|
|
197
296
|
* Skip type checking all .d.ts files.
|
|
198
297
|
*/
|
|
199
|
-
skipLibCheck?: boolean;
|
|
298
|
+
skipLibCheck?: boolean | null;
|
|
200
299
|
/**
|
|
201
300
|
* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output.
|
|
202
301
|
*/
|
|
203
|
-
outFile?: string;
|
|
302
|
+
outFile?: string | null;
|
|
204
303
|
/**
|
|
205
304
|
* Specify an output folder for all emitted files.
|
|
206
305
|
*/
|
|
207
|
-
outDir?: string;
|
|
306
|
+
outDir?: string | null;
|
|
208
307
|
/**
|
|
209
308
|
* Disable erasing `const enum` declarations in generated code.
|
|
210
309
|
*/
|
|
211
|
-
preserveConstEnums?: boolean;
|
|
310
|
+
preserveConstEnums?: boolean | null;
|
|
212
311
|
/**
|
|
213
312
|
* Disable resolving symlinks to their realpath. This correlates to the same flag in node.
|
|
214
313
|
*/
|
|
215
|
-
preserveSymlinks?: boolean;
|
|
314
|
+
preserveSymlinks?: boolean | null;
|
|
216
315
|
/**
|
|
217
|
-
* Preserve unused imported values in the JavaScript output that would otherwise be removed
|
|
316
|
+
* Preserve unused imported values in the JavaScript output that would otherwise be removed.
|
|
218
317
|
*/
|
|
219
|
-
preserveValueImports?: boolean;
|
|
318
|
+
preserveValueImports?: boolean | null;
|
|
220
319
|
/**
|
|
221
|
-
* Disable wiping the console in watch mode
|
|
320
|
+
* Disable wiping the console in watch mode.
|
|
222
321
|
*/
|
|
223
|
-
preserveWatchOutput?: boolean;
|
|
322
|
+
preserveWatchOutput?: boolean | null;
|
|
224
323
|
/**
|
|
225
|
-
* Enable color and formatting in output to make compiler errors easier to read
|
|
324
|
+
* Enable color and formatting in TypeScript's output to make compiler errors easier to read.
|
|
226
325
|
*/
|
|
227
|
-
pretty?: boolean;
|
|
326
|
+
pretty?: boolean | null;
|
|
228
327
|
/**
|
|
229
328
|
* Disable emitting comments.
|
|
230
329
|
*/
|
|
231
|
-
removeComments?: boolean;
|
|
330
|
+
removeComments?: boolean | null;
|
|
331
|
+
/**
|
|
332
|
+
* Rewrite `.ts`, `.tsx`, `.mts`, and `.cts` file extensions in relative import paths to their JavaScript equivalent in output files.
|
|
333
|
+
*/
|
|
334
|
+
rewriteRelativeImportExtensions?: boolean | null;
|
|
232
335
|
/**
|
|
233
336
|
* Specify the root folder within your source files.
|
|
234
337
|
*/
|
|
235
|
-
rootDir?: string;
|
|
338
|
+
rootDir?: string | null;
|
|
236
339
|
/**
|
|
237
340
|
* Ensure that each file can be safely transpiled without relying on other imports.
|
|
238
341
|
*/
|
|
239
|
-
isolatedModules?: boolean;
|
|
342
|
+
isolatedModules?: boolean | null;
|
|
240
343
|
/**
|
|
241
344
|
* Create source map files for emitted JavaScript files.
|
|
242
345
|
*/
|
|
243
|
-
sourceMap?: boolean;
|
|
346
|
+
sourceMap?: boolean | null;
|
|
244
347
|
/**
|
|
245
348
|
* Specify the root path for debuggers to find the reference source code.
|
|
246
349
|
*/
|
|
247
|
-
sourceRoot?: string;
|
|
350
|
+
sourceRoot?: string | null;
|
|
248
351
|
/**
|
|
249
352
|
* Disable reporting of excess property errors during the creation of object literals.
|
|
250
353
|
*/
|
|
251
|
-
suppressExcessPropertyErrors?: boolean;
|
|
354
|
+
suppressExcessPropertyErrors?: boolean | null;
|
|
252
355
|
/**
|
|
253
356
|
* Suppress `noImplicitAny` errors when indexing objects that lack index signatures.
|
|
254
357
|
*/
|
|
255
|
-
suppressImplicitAnyIndexErrors?: boolean;
|
|
358
|
+
suppressImplicitAnyIndexErrors?: boolean | null;
|
|
256
359
|
/**
|
|
257
360
|
* Disable emitting declarations that have `@internal` in their JSDoc comments.
|
|
258
361
|
*/
|
|
259
|
-
stripInternal?: boolean;
|
|
362
|
+
stripInternal?: boolean | null;
|
|
260
363
|
/**
|
|
261
364
|
* Set the JavaScript language version for emitted JavaScript and include compatible library declarations.
|
|
262
365
|
*/
|
|
263
366
|
target?: (
|
|
264
367
|
| (
|
|
265
|
-
| "
|
|
266
|
-
| "
|
|
267
|
-
| "
|
|
268
|
-
| "
|
|
269
|
-
| "
|
|
270
|
-
| "
|
|
271
|
-
| "
|
|
272
|
-
| "
|
|
273
|
-
| "
|
|
274
|
-
| "
|
|
275
|
-
| "
|
|
276
|
-
| "
|
|
368
|
+
| "es3"
|
|
369
|
+
| "es5"
|
|
370
|
+
| "es6"
|
|
371
|
+
| "es2015"
|
|
372
|
+
| "es2016"
|
|
373
|
+
| "es2017"
|
|
374
|
+
| "es2018"
|
|
375
|
+
| "es2019"
|
|
376
|
+
| "es2020"
|
|
377
|
+
| "es2021"
|
|
378
|
+
| "es2022"
|
|
379
|
+
| "es2023"
|
|
380
|
+
| "es2024"
|
|
381
|
+
| "esnext"
|
|
277
382
|
)
|
|
278
383
|
| {
|
|
279
384
|
[k: string]: unknown;
|
|
280
385
|
}
|
|
281
386
|
) &
|
|
282
|
-
|
|
387
|
+
(
|
|
388
|
+
| ((
|
|
389
|
+
| (
|
|
390
|
+
| "es3"
|
|
391
|
+
| "es5"
|
|
392
|
+
| "es6"
|
|
393
|
+
| "es2015"
|
|
394
|
+
| "es2016"
|
|
395
|
+
| "es2017"
|
|
396
|
+
| "es2018"
|
|
397
|
+
| "es2019"
|
|
398
|
+
| "es2020"
|
|
399
|
+
| "es2021"
|
|
400
|
+
| "es2022"
|
|
401
|
+
| "es2023"
|
|
402
|
+
| "es2024"
|
|
403
|
+
| "esnext"
|
|
404
|
+
)
|
|
405
|
+
| {
|
|
406
|
+
[k: string]: unknown;
|
|
407
|
+
}
|
|
408
|
+
) &
|
|
409
|
+
string)
|
|
410
|
+
| ((
|
|
411
|
+
| (
|
|
412
|
+
| "es3"
|
|
413
|
+
| "es5"
|
|
414
|
+
| "es6"
|
|
415
|
+
| "es2015"
|
|
416
|
+
| "es2016"
|
|
417
|
+
| "es2017"
|
|
418
|
+
| "es2018"
|
|
419
|
+
| "es2019"
|
|
420
|
+
| "es2020"
|
|
421
|
+
| "es2021"
|
|
422
|
+
| "es2022"
|
|
423
|
+
| "es2023"
|
|
424
|
+
| "es2024"
|
|
425
|
+
| "esnext"
|
|
426
|
+
)
|
|
427
|
+
| {
|
|
428
|
+
[k: string]: unknown;
|
|
429
|
+
}
|
|
430
|
+
) &
|
|
431
|
+
null)
|
|
432
|
+
);
|
|
283
433
|
/**
|
|
284
434
|
* Default catch clause variables as `unknown` instead of `any`.
|
|
285
435
|
*/
|
|
286
|
-
useUnknownInCatchVariables?: boolean;
|
|
436
|
+
useUnknownInCatchVariables?: boolean | null;
|
|
287
437
|
/**
|
|
288
438
|
* Watch input files.
|
|
289
439
|
*/
|
|
290
|
-
watch?: boolean;
|
|
440
|
+
watch?: boolean | null;
|
|
291
441
|
/**
|
|
292
442
|
* Specify the polling strategy to use when the system runs out of or doesn't support native file watchers. Requires TypeScript version 3.8 or later.
|
|
293
443
|
*/
|
|
@@ -314,317 +464,1151 @@ export interface CompilerOptions {
|
|
|
314
464
|
| "useFsEventsOnParentDirectory"
|
|
315
465
|
| "fixedChunkSizePolling";
|
|
316
466
|
/**
|
|
317
|
-
* Enable experimental support for
|
|
467
|
+
* Enable experimental support for legacy experimental decorators.
|
|
318
468
|
*/
|
|
319
|
-
experimentalDecorators?: boolean;
|
|
469
|
+
experimentalDecorators?: boolean | null;
|
|
320
470
|
/**
|
|
321
471
|
* Emit design-type metadata for decorated declarations in source files.
|
|
322
472
|
*/
|
|
323
|
-
emitDecoratorMetadata?: boolean;
|
|
473
|
+
emitDecoratorMetadata?: boolean | null;
|
|
324
474
|
/**
|
|
325
475
|
* Disable error reporting for unused labels.
|
|
326
476
|
*/
|
|
327
|
-
allowUnusedLabels?: boolean;
|
|
477
|
+
allowUnusedLabels?: boolean | null;
|
|
328
478
|
/**
|
|
329
479
|
* Enable error reporting for codepaths that do not explicitly return in a function.
|
|
330
480
|
*/
|
|
331
|
-
noImplicitReturns?: boolean;
|
|
481
|
+
noImplicitReturns?: boolean | null;
|
|
332
482
|
/**
|
|
333
483
|
* Add `undefined` to a type when accessed using an index.
|
|
334
484
|
*/
|
|
335
|
-
noUncheckedIndexedAccess?: boolean;
|
|
485
|
+
noUncheckedIndexedAccess?: boolean | null;
|
|
336
486
|
/**
|
|
337
487
|
* Enable error reporting for fallthrough cases in switch statements.
|
|
338
488
|
*/
|
|
339
|
-
noFallthroughCasesInSwitch?: boolean;
|
|
489
|
+
noFallthroughCasesInSwitch?: boolean | null;
|
|
340
490
|
/**
|
|
341
491
|
* Ensure overriding members in derived classes are marked with an override modifier.
|
|
342
492
|
*/
|
|
343
|
-
noImplicitOverride?: boolean;
|
|
493
|
+
noImplicitOverride?: boolean | null;
|
|
344
494
|
/**
|
|
345
495
|
* Disable error reporting for unreachable code.
|
|
346
496
|
*/
|
|
347
|
-
allowUnreachableCode?: boolean;
|
|
497
|
+
allowUnreachableCode?: boolean | null;
|
|
348
498
|
/**
|
|
349
499
|
* Ensure that casing is correct in imports.
|
|
350
500
|
*/
|
|
351
|
-
forceConsistentCasingInFileNames?: boolean;
|
|
501
|
+
forceConsistentCasingInFileNames?: boolean | null;
|
|
352
502
|
/**
|
|
353
503
|
* Emit a v8 CPU profile of the compiler run for debugging.
|
|
354
504
|
*/
|
|
355
|
-
generateCpuProfile?: string;
|
|
505
|
+
generateCpuProfile?: string | null;
|
|
356
506
|
/**
|
|
357
507
|
* Specify the base directory to resolve non-relative module names.
|
|
358
508
|
*/
|
|
359
|
-
baseUrl?: string;
|
|
509
|
+
baseUrl?: string | null;
|
|
360
510
|
/**
|
|
361
511
|
* Specify a set of entries that re-map imports to additional lookup locations.
|
|
362
512
|
*/
|
|
363
513
|
paths?: {
|
|
364
|
-
[k: string]: string[];
|
|
365
|
-
};
|
|
514
|
+
[k: string]: string[] | null;
|
|
515
|
+
} | null;
|
|
366
516
|
/**
|
|
367
517
|
* Specify a list of language service plugins to include.
|
|
368
518
|
*/
|
|
369
|
-
plugins?:
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
519
|
+
plugins?:
|
|
520
|
+
| {
|
|
521
|
+
/**
|
|
522
|
+
* Plugin name.
|
|
523
|
+
*/
|
|
524
|
+
name?: string;
|
|
525
|
+
[k: string]: unknown;
|
|
526
|
+
}[]
|
|
527
|
+
| null;
|
|
376
528
|
/**
|
|
377
529
|
* Allow multiple folders to be treated as one when resolving modules.
|
|
378
530
|
*/
|
|
379
|
-
rootDirs?: string[];
|
|
531
|
+
rootDirs?: string[] | null;
|
|
380
532
|
/**
|
|
381
533
|
* Specify multiple folders that act like `./node_modules/@types`.
|
|
382
534
|
*/
|
|
383
|
-
typeRoots?: string[];
|
|
535
|
+
typeRoots?: string[] | null;
|
|
384
536
|
/**
|
|
385
537
|
* Specify type package names to be included without being referenced in a source file.
|
|
386
538
|
*/
|
|
387
|
-
types?: string[];
|
|
539
|
+
types?: string[] | null;
|
|
388
540
|
/**
|
|
389
|
-
*
|
|
541
|
+
* Log paths used during the `moduleResolution` process.
|
|
390
542
|
*/
|
|
391
|
-
traceResolution?: boolean;
|
|
543
|
+
traceResolution?: boolean | null;
|
|
392
544
|
/**
|
|
393
|
-
* Allow JavaScript files to be a part of your program. Use the `
|
|
545
|
+
* Allow JavaScript files to be a part of your program. Use the `checkJs` option to get errors from these files.
|
|
394
546
|
*/
|
|
395
|
-
allowJs?: boolean;
|
|
547
|
+
allowJs?: boolean | null;
|
|
396
548
|
/**
|
|
397
549
|
* Disable truncating types in error messages.
|
|
398
550
|
*/
|
|
399
|
-
noErrorTruncation?: boolean;
|
|
551
|
+
noErrorTruncation?: boolean | null;
|
|
400
552
|
/**
|
|
401
|
-
* Allow
|
|
553
|
+
* Allow `import x from y` when a module doesn't have a default export.
|
|
402
554
|
*/
|
|
403
|
-
allowSyntheticDefaultImports?: boolean;
|
|
555
|
+
allowSyntheticDefaultImports?: boolean | null;
|
|
404
556
|
/**
|
|
405
|
-
* Disable adding
|
|
557
|
+
* Disable adding `use strict` directives in emitted JavaScript files.
|
|
406
558
|
*/
|
|
407
|
-
noImplicitUseStrict?: boolean;
|
|
559
|
+
noImplicitUseStrict?: boolean | null;
|
|
408
560
|
/**
|
|
409
561
|
* Print the names of emitted files after a compilation.
|
|
410
562
|
*/
|
|
411
|
-
listEmittedFiles?: boolean;
|
|
563
|
+
listEmittedFiles?: boolean | null;
|
|
412
564
|
/**
|
|
413
565
|
* Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server.
|
|
414
566
|
*/
|
|
415
|
-
disableSizeLimit?: boolean;
|
|
567
|
+
disableSizeLimit?: boolean | null;
|
|
416
568
|
/**
|
|
417
569
|
* Specify a set of bundled library declaration files that describe the target runtime environment.
|
|
418
570
|
*/
|
|
419
|
-
lib?:
|
|
571
|
+
lib?:
|
|
572
|
+
| ((
|
|
573
|
+
| (
|
|
574
|
+
| "ES5"
|
|
575
|
+
| "ES6"
|
|
576
|
+
| "ES2015"
|
|
577
|
+
| "ES2015.Collection"
|
|
578
|
+
| "ES2015.Core"
|
|
579
|
+
| "ES2015.Generator"
|
|
580
|
+
| "ES2015.Iterable"
|
|
581
|
+
| "ES2015.Promise"
|
|
582
|
+
| "ES2015.Proxy"
|
|
583
|
+
| "ES2015.Reflect"
|
|
584
|
+
| "ES2015.Symbol.WellKnown"
|
|
585
|
+
| "ES2015.Symbol"
|
|
586
|
+
| "ES2016"
|
|
587
|
+
| "ES2016.Array.Include"
|
|
588
|
+
| "ES2017"
|
|
589
|
+
| "ES2017.Intl"
|
|
590
|
+
| "ES2017.Object"
|
|
591
|
+
| "ES2017.SharedMemory"
|
|
592
|
+
| "ES2017.String"
|
|
593
|
+
| "ES2017.TypedArrays"
|
|
594
|
+
| "ES2017.ArrayBuffer"
|
|
595
|
+
| "ES2018"
|
|
596
|
+
| "ES2018.AsyncGenerator"
|
|
597
|
+
| "ES2018.AsyncIterable"
|
|
598
|
+
| "ES2018.Intl"
|
|
599
|
+
| "ES2018.Promise"
|
|
600
|
+
| "ES2018.Regexp"
|
|
601
|
+
| "ES2019"
|
|
602
|
+
| "ES2019.Array"
|
|
603
|
+
| "ES2019.Intl"
|
|
604
|
+
| "ES2019.Object"
|
|
605
|
+
| "ES2019.String"
|
|
606
|
+
| "ES2019.Symbol"
|
|
607
|
+
| "ES2020"
|
|
608
|
+
| "ES2020.BigInt"
|
|
609
|
+
| "ES2020.Promise"
|
|
610
|
+
| "ES2020.String"
|
|
611
|
+
| "ES2020.Symbol.WellKnown"
|
|
612
|
+
| "ESNext"
|
|
613
|
+
| "ESNext.Array"
|
|
614
|
+
| "ESNext.AsyncIterable"
|
|
615
|
+
| "ESNext.BigInt"
|
|
616
|
+
| "ESNext.Collection"
|
|
617
|
+
| "ESNext.Intl"
|
|
618
|
+
| "ESNext.Iterator"
|
|
619
|
+
| "ESNext.Object"
|
|
620
|
+
| "ESNext.Promise"
|
|
621
|
+
| "ESNext.Regexp"
|
|
622
|
+
| "ESNext.String"
|
|
623
|
+
| "ESNext.Symbol"
|
|
624
|
+
| "DOM"
|
|
625
|
+
| "DOM.AsyncIterable"
|
|
626
|
+
| "DOM.Iterable"
|
|
627
|
+
| "ScriptHost"
|
|
628
|
+
| "WebWorker"
|
|
629
|
+
| "WebWorker.AsyncIterable"
|
|
630
|
+
| "WebWorker.ImportScripts"
|
|
631
|
+
| "Webworker.Iterable"
|
|
632
|
+
| "ES7"
|
|
633
|
+
| "ES2021"
|
|
634
|
+
| "ES2020.SharedMemory"
|
|
635
|
+
| "ES2020.Intl"
|
|
636
|
+
| "ES2020.Date"
|
|
637
|
+
| "ES2020.Number"
|
|
638
|
+
| "ES2021.Promise"
|
|
639
|
+
| "ES2021.String"
|
|
640
|
+
| "ES2021.WeakRef"
|
|
641
|
+
| "ESNext.WeakRef"
|
|
642
|
+
| "ES2021.Intl"
|
|
643
|
+
| "ES2022"
|
|
644
|
+
| "ES2022.Array"
|
|
645
|
+
| "ES2022.Error"
|
|
646
|
+
| "ES2022.Intl"
|
|
647
|
+
| "ES2022.Object"
|
|
648
|
+
| "ES2022.String"
|
|
649
|
+
| "ES2022.SharedMemory"
|
|
650
|
+
| "ES2022.RegExp"
|
|
651
|
+
| "ES2023"
|
|
652
|
+
| "ES2023.Array"
|
|
653
|
+
| "ES2024"
|
|
654
|
+
| "ES2024.ArrayBuffer"
|
|
655
|
+
| "ES2024.Collection"
|
|
656
|
+
| "ES2024.Object"
|
|
657
|
+
| "ES2024.Promise"
|
|
658
|
+
| "ES2024.Regexp"
|
|
659
|
+
| "ES2024.SharedMemory"
|
|
660
|
+
| "ES2024.String"
|
|
661
|
+
| "Decorators"
|
|
662
|
+
| "Decorators.Legacy"
|
|
663
|
+
| "ES2017.Date"
|
|
664
|
+
| "ES2023.Collection"
|
|
665
|
+
| "ESNext.Decorators"
|
|
666
|
+
| "ESNext.Disposable"
|
|
667
|
+
| "ESNext.Error"
|
|
668
|
+
| "ESNext.Sharedmemory"
|
|
669
|
+
)
|
|
670
|
+
| {
|
|
671
|
+
[k: string]: unknown;
|
|
672
|
+
}
|
|
673
|
+
) &
|
|
674
|
+
string)[]
|
|
675
|
+
| null;
|
|
676
|
+
/**
|
|
677
|
+
* Enable lib replacement.
|
|
678
|
+
*/
|
|
679
|
+
libReplacement?: boolean | null;
|
|
680
|
+
/**
|
|
681
|
+
* Control what method is used to detect module-format JS files.
|
|
682
|
+
*/
|
|
683
|
+
moduleDetection?: "auto" | "legacy" | "force";
|
|
684
|
+
/**
|
|
685
|
+
* When type checking, take into account `null` and `undefined`.
|
|
686
|
+
*/
|
|
687
|
+
strictNullChecks?: boolean | null;
|
|
688
|
+
/**
|
|
689
|
+
* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`.
|
|
690
|
+
*/
|
|
691
|
+
maxNodeModuleJsDepth?: number | null;
|
|
692
|
+
/**
|
|
693
|
+
* Allow importing helper functions from tslib once per project, instead of including them per-file.
|
|
694
|
+
*/
|
|
695
|
+
importHelpers?: boolean | null;
|
|
696
|
+
/**
|
|
697
|
+
* Specify emit/checking behavior for imports that are only used for types.
|
|
698
|
+
*/
|
|
699
|
+
importsNotUsedAsValues?: "remove" | "preserve" | "error";
|
|
700
|
+
/**
|
|
701
|
+
* Ensure `use strict` is always emitted.
|
|
702
|
+
*/
|
|
703
|
+
alwaysStrict?: boolean | null;
|
|
704
|
+
/**
|
|
705
|
+
* Enable all strict type-checking options.
|
|
706
|
+
*/
|
|
707
|
+
strict?: boolean | null;
|
|
708
|
+
/**
|
|
709
|
+
* Check that the arguments for `bind`, `call`, and `apply` methods match the original function.
|
|
710
|
+
*/
|
|
711
|
+
strictBindCallApply?: boolean | null;
|
|
712
|
+
/**
|
|
713
|
+
* Emit more compliant, but verbose and less performant JavaScript for iteration.
|
|
714
|
+
*/
|
|
715
|
+
downlevelIteration?: boolean | null;
|
|
716
|
+
/**
|
|
717
|
+
* Enable error reporting in type-checked JavaScript files.
|
|
718
|
+
*/
|
|
719
|
+
checkJs?: boolean | null;
|
|
720
|
+
/**
|
|
721
|
+
* When assigning functions, check to ensure parameters and the return values are subtype-compatible.
|
|
722
|
+
*/
|
|
723
|
+
strictFunctionTypes?: boolean | null;
|
|
724
|
+
/**
|
|
725
|
+
* Check for class properties that are declared but not set in the constructor.
|
|
726
|
+
*/
|
|
727
|
+
strictPropertyInitialization?: boolean | null;
|
|
728
|
+
/**
|
|
729
|
+
* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility.
|
|
730
|
+
*/
|
|
731
|
+
esModuleInterop?: boolean | null;
|
|
732
|
+
/**
|
|
733
|
+
* Allow accessing UMD globals from modules.
|
|
734
|
+
*/
|
|
735
|
+
allowUmdGlobalAccess?: boolean | null;
|
|
736
|
+
/**
|
|
737
|
+
* Make keyof only return strings instead of string, numbers or symbols. Legacy option.
|
|
738
|
+
*/
|
|
739
|
+
keyofStringsOnly?: boolean | null;
|
|
740
|
+
/**
|
|
741
|
+
* Emit ECMAScript-standard-compliant class fields.
|
|
742
|
+
*/
|
|
743
|
+
useDefineForClassFields?: boolean | null;
|
|
744
|
+
/**
|
|
745
|
+
* Create sourcemaps for d.ts files.
|
|
746
|
+
*/
|
|
747
|
+
declarationMap?: boolean | null;
|
|
748
|
+
/**
|
|
749
|
+
* Enable importing .json files.
|
|
750
|
+
*/
|
|
751
|
+
resolveJsonModule?: boolean | null;
|
|
752
|
+
/**
|
|
753
|
+
* Use the package.json 'exports' field when resolving package imports.
|
|
754
|
+
*/
|
|
755
|
+
resolvePackageJsonExports?: boolean | null;
|
|
756
|
+
/**
|
|
757
|
+
* Use the package.json 'imports' field when resolving imports.
|
|
758
|
+
*/
|
|
759
|
+
resolvePackageJsonImports?: boolean | null;
|
|
760
|
+
/**
|
|
761
|
+
* Have recompiles in projects that use `incremental` and `watch` mode assume that changes within a file will only affect files directly depending on it.
|
|
762
|
+
*/
|
|
763
|
+
assumeChangesOnlyAffectDirectDependencies?: boolean | null;
|
|
764
|
+
/**
|
|
765
|
+
* Output more detailed compiler performance information after building.
|
|
766
|
+
*/
|
|
767
|
+
extendedDiagnostics?: boolean | null;
|
|
768
|
+
/**
|
|
769
|
+
* Print names of files that are part of the compilation and then stop processing.
|
|
770
|
+
*/
|
|
771
|
+
listFilesOnly?: boolean | null;
|
|
772
|
+
/**
|
|
773
|
+
* Disable preferring source files instead of declaration files when referencing composite projects.
|
|
774
|
+
*/
|
|
775
|
+
disableSourceOfProjectReferenceRedirect?: boolean | null;
|
|
776
|
+
/**
|
|
777
|
+
* Opt a project out of multi-project reference checking when editing.
|
|
778
|
+
*/
|
|
779
|
+
disableSolutionSearching?: boolean | null;
|
|
780
|
+
/**
|
|
781
|
+
* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the `module` setting.
|
|
782
|
+
*/
|
|
783
|
+
verbatimModuleSyntax?: boolean | null;
|
|
784
|
+
/**
|
|
785
|
+
* Disable full type checking (only critical parse and emit errors will be reported).
|
|
786
|
+
*/
|
|
787
|
+
noCheck?: boolean | null;
|
|
788
|
+
/**
|
|
789
|
+
* Require sufficient annotation on exports so other tools can trivially generate declaration files.
|
|
790
|
+
*/
|
|
791
|
+
isolatedDeclarations?: boolean | null;
|
|
792
|
+
/**
|
|
793
|
+
* Check side effect imports.
|
|
794
|
+
*/
|
|
795
|
+
noUncheckedSideEffectImports?: boolean | null;
|
|
796
|
+
/**
|
|
797
|
+
* Built-in iterators are instantiated with a `TReturn` type of `undefined` instead of `any`.
|
|
798
|
+
*/
|
|
799
|
+
strictBuiltinIteratorReturn?: boolean | null;
|
|
800
|
+
[k: string]: unknown;
|
|
801
|
+
} & ({
|
|
802
|
+
/**
|
|
803
|
+
* Enable importing files with any extension, provided a declaration file is present.
|
|
804
|
+
*/
|
|
805
|
+
allowArbitraryExtensions?: boolean | null;
|
|
806
|
+
/**
|
|
807
|
+
* Allow imports to include TypeScript file extensions. Requires `--moduleResolution bundler` and either `--noEmit` or `--emitDeclarationOnly` to be set.
|
|
808
|
+
*/
|
|
809
|
+
allowImportingTsExtensions?: boolean | null;
|
|
810
|
+
/**
|
|
811
|
+
* No longer supported. In early versions, manually set the text encoding for reading files.
|
|
812
|
+
*/
|
|
813
|
+
charset?: string | null;
|
|
814
|
+
/**
|
|
815
|
+
* Enable constraints that allow a TypeScript project to be used with project references.
|
|
816
|
+
*/
|
|
817
|
+
composite?: boolean | null;
|
|
818
|
+
/**
|
|
819
|
+
* Conditions to set in addition to the resolver-specific defaults when resolving imports.
|
|
820
|
+
*/
|
|
821
|
+
customConditions?: string[] | null;
|
|
822
|
+
/**
|
|
823
|
+
* Generate .d.ts files from TypeScript and JavaScript files in your project.
|
|
824
|
+
*/
|
|
825
|
+
declaration?: boolean | null;
|
|
826
|
+
/**
|
|
827
|
+
* Specify the output directory for generated declaration files.
|
|
828
|
+
*/
|
|
829
|
+
declarationDir?: string | null;
|
|
830
|
+
/**
|
|
831
|
+
* Output compiler performance information after building.
|
|
832
|
+
*/
|
|
833
|
+
diagnostics?: boolean | null;
|
|
834
|
+
/**
|
|
835
|
+
* Reduce the number of projects loaded automatically by TypeScript.
|
|
836
|
+
*/
|
|
837
|
+
disableReferencedProjectLoad?: boolean | null;
|
|
838
|
+
/**
|
|
839
|
+
* Enforces using indexed accessors for keys declared using an indexed type.
|
|
840
|
+
*/
|
|
841
|
+
noPropertyAccessFromIndexSignature?: boolean | null;
|
|
842
|
+
/**
|
|
843
|
+
* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.
|
|
844
|
+
*/
|
|
845
|
+
emitBOM?: boolean | null;
|
|
846
|
+
/**
|
|
847
|
+
* Only output d.ts files and not JavaScript files.
|
|
848
|
+
*/
|
|
849
|
+
emitDeclarationOnly?: boolean | null;
|
|
850
|
+
/**
|
|
851
|
+
* Do not allow runtime constructs that are not part of ECMAScript.
|
|
852
|
+
*/
|
|
853
|
+
erasableSyntaxOnly?: boolean | null;
|
|
854
|
+
/**
|
|
855
|
+
* Interpret optional property types as written, rather than adding `undefined`.
|
|
856
|
+
*/
|
|
857
|
+
exactOptionalPropertyTypes?: boolean | null;
|
|
858
|
+
/**
|
|
859
|
+
* Enable incremental compilation. Requires TypeScript version 3.4 or later.
|
|
860
|
+
*/
|
|
861
|
+
incremental?: boolean | null;
|
|
862
|
+
/**
|
|
863
|
+
* Specify the path to .tsbuildinfo incremental compilation file.
|
|
864
|
+
*/
|
|
865
|
+
tsBuildInfoFile?: string | null;
|
|
866
|
+
/**
|
|
867
|
+
* Include sourcemap files inside the emitted JavaScript.
|
|
868
|
+
*/
|
|
869
|
+
inlineSourceMap?: boolean | null;
|
|
870
|
+
/**
|
|
871
|
+
* Include source code in the sourcemaps inside the emitted JavaScript.
|
|
872
|
+
*/
|
|
873
|
+
inlineSources?: boolean | null;
|
|
874
|
+
/**
|
|
875
|
+
* Specify what JSX code is generated.
|
|
876
|
+
*/
|
|
877
|
+
jsx?: "preserve" | "react" | "react-jsx" | "react-jsxdev" | "react-native";
|
|
878
|
+
/**
|
|
879
|
+
* Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit.
|
|
880
|
+
*/
|
|
881
|
+
reactNamespace?: string | null;
|
|
882
|
+
/**
|
|
883
|
+
* Specify the JSX factory function used when targeting React JSX emit, e.g. `React.createElement` or `h`.
|
|
884
|
+
*/
|
|
885
|
+
jsxFactory?: string | null;
|
|
886
|
+
/**
|
|
887
|
+
* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. `React.Fragment` or `Fragment`.
|
|
888
|
+
*/
|
|
889
|
+
jsxFragmentFactory?: string | null;
|
|
890
|
+
/**
|
|
891
|
+
* Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.
|
|
892
|
+
*/
|
|
893
|
+
jsxImportSource?: string | null;
|
|
894
|
+
/**
|
|
895
|
+
* Print all of the files read during the compilation.
|
|
896
|
+
*/
|
|
897
|
+
listFiles?: boolean | null;
|
|
898
|
+
/**
|
|
899
|
+
* Specify the location where debugger should locate map files instead of generated locations.
|
|
900
|
+
*/
|
|
901
|
+
mapRoot?: string | null;
|
|
902
|
+
/**
|
|
903
|
+
* Specify what module code is generated.
|
|
904
|
+
*/
|
|
905
|
+
module?: (
|
|
420
906
|
| (
|
|
421
|
-
| "
|
|
422
|
-
| "
|
|
423
|
-
| "
|
|
424
|
-
| "
|
|
425
|
-
| "
|
|
426
|
-
| "
|
|
427
|
-
| "
|
|
428
|
-
| "
|
|
429
|
-
| "
|
|
430
|
-
| "
|
|
431
|
-
| "
|
|
432
|
-
| "
|
|
433
|
-
| "
|
|
434
|
-
| "
|
|
435
|
-
| "
|
|
436
|
-
| "ES2017.Intl"
|
|
437
|
-
| "ES2017.Object"
|
|
438
|
-
| "ES2017.SharedMemory"
|
|
439
|
-
| "ES2017.String"
|
|
440
|
-
| "ES2017.TypedArrays"
|
|
441
|
-
| "ES2018"
|
|
442
|
-
| "ES2018.AsyncGenerator"
|
|
443
|
-
| "ES2018.AsyncIterable"
|
|
444
|
-
| "ES2018.Intl"
|
|
445
|
-
| "ES2018.Promise"
|
|
446
|
-
| "ES2018.Regexp"
|
|
447
|
-
| "ES2019"
|
|
448
|
-
| "ES2019.Array"
|
|
449
|
-
| "ES2019.Intl"
|
|
450
|
-
| "ES2019.Object"
|
|
451
|
-
| "ES2019.String"
|
|
452
|
-
| "ES2019.Symbol"
|
|
453
|
-
| "ES2020"
|
|
454
|
-
| "ES2020.BigInt"
|
|
455
|
-
| "ES2020.Promise"
|
|
456
|
-
| "ES2020.String"
|
|
457
|
-
| "ES2020.Symbol.WellKnown"
|
|
458
|
-
| "ESNext"
|
|
459
|
-
| "ESNext.Array"
|
|
460
|
-
| "ESNext.AsyncIterable"
|
|
461
|
-
| "ESNext.BigInt"
|
|
462
|
-
| "ESNext.Intl"
|
|
463
|
-
| "ESNext.Promise"
|
|
464
|
-
| "ESNext.String"
|
|
465
|
-
| "ESNext.Symbol"
|
|
466
|
-
| "DOM"
|
|
467
|
-
| "DOM.Iterable"
|
|
468
|
-
| "ScriptHost"
|
|
469
|
-
| "WebWorker"
|
|
470
|
-
| "WebWorker.ImportScripts"
|
|
471
|
-
| "Webworker.Iterable"
|
|
472
|
-
| "ES7"
|
|
473
|
-
| "ES2021"
|
|
474
|
-
| "ES2020.SharedMemory"
|
|
475
|
-
| "ES2020.Intl"
|
|
476
|
-
| "ES2021.Promise"
|
|
477
|
-
| "ES2021.String"
|
|
478
|
-
| "ES2021.WeakRef"
|
|
479
|
-
| "ESNext.WeakRef"
|
|
480
|
-
| "es2021.intl"
|
|
481
|
-
| "ES2022"
|
|
482
|
-
| "ES2022.Array"
|
|
483
|
-
| "ES2022.Error"
|
|
484
|
-
| "ES2022.Intl"
|
|
485
|
-
| "ES2022.Object"
|
|
486
|
-
| "ES2022.String"
|
|
907
|
+
| "commonjs"
|
|
908
|
+
| "amd"
|
|
909
|
+
| "system"
|
|
910
|
+
| "umd"
|
|
911
|
+
| "es6"
|
|
912
|
+
| "es2015"
|
|
913
|
+
| "es2020"
|
|
914
|
+
| "esnext"
|
|
915
|
+
| "none"
|
|
916
|
+
| "es2022"
|
|
917
|
+
| "node16"
|
|
918
|
+
| "node18"
|
|
919
|
+
| "node20"
|
|
920
|
+
| "nodenext"
|
|
921
|
+
| "preserve"
|
|
487
922
|
)
|
|
488
923
|
| {
|
|
489
924
|
[k: string]: unknown;
|
|
490
925
|
}
|
|
926
|
+
) &
|
|
927
|
+
(
|
|
928
|
+
| ((
|
|
929
|
+
| (
|
|
930
|
+
| "commonjs"
|
|
931
|
+
| "amd"
|
|
932
|
+
| "system"
|
|
933
|
+
| "umd"
|
|
934
|
+
| "es6"
|
|
935
|
+
| "es2015"
|
|
936
|
+
| "es2020"
|
|
937
|
+
| "esnext"
|
|
938
|
+
| "none"
|
|
939
|
+
| "es2022"
|
|
940
|
+
| "node16"
|
|
941
|
+
| "node18"
|
|
942
|
+
| "node20"
|
|
943
|
+
| "nodenext"
|
|
944
|
+
| "preserve"
|
|
945
|
+
)
|
|
946
|
+
| {
|
|
947
|
+
[k: string]: unknown;
|
|
948
|
+
}
|
|
949
|
+
) &
|
|
950
|
+
string)
|
|
951
|
+
| ((
|
|
952
|
+
| (
|
|
953
|
+
| "commonjs"
|
|
954
|
+
| "amd"
|
|
955
|
+
| "system"
|
|
956
|
+
| "umd"
|
|
957
|
+
| "es6"
|
|
958
|
+
| "es2015"
|
|
959
|
+
| "es2020"
|
|
960
|
+
| "esnext"
|
|
961
|
+
| "none"
|
|
962
|
+
| "es2022"
|
|
963
|
+
| "node16"
|
|
964
|
+
| "node18"
|
|
965
|
+
| "node20"
|
|
966
|
+
| "nodenext"
|
|
967
|
+
| "preserve"
|
|
968
|
+
)
|
|
969
|
+
| {
|
|
970
|
+
[k: string]: unknown;
|
|
971
|
+
}
|
|
972
|
+
) &
|
|
973
|
+
null)
|
|
974
|
+
);
|
|
975
|
+
/**
|
|
976
|
+
* Specify how TypeScript looks up a file from a given module specifier.
|
|
977
|
+
*/
|
|
978
|
+
moduleResolution?: (
|
|
979
|
+
| ("classic" | "node" | "node10" | "node16" | "nodenext" | "bundler")
|
|
491
980
|
| {
|
|
492
981
|
[k: string]: unknown;
|
|
493
982
|
}
|
|
983
|
+
) &
|
|
984
|
+
(
|
|
985
|
+
| ((
|
|
986
|
+
| ("classic" | "node" | "node10" | "node16" | "nodenext" | "bundler")
|
|
987
|
+
| {
|
|
988
|
+
[k: string]: unknown;
|
|
989
|
+
}
|
|
990
|
+
) &
|
|
991
|
+
string)
|
|
992
|
+
| ((
|
|
993
|
+
| ("classic" | "node" | "node10" | "node16" | "nodenext" | "bundler")
|
|
994
|
+
| {
|
|
995
|
+
[k: string]: unknown;
|
|
996
|
+
}
|
|
997
|
+
) &
|
|
998
|
+
null)
|
|
999
|
+
);
|
|
1000
|
+
/**
|
|
1001
|
+
* List of file name suffixes to search when resolving a module.
|
|
1002
|
+
*/
|
|
1003
|
+
moduleSuffixes?: string[] | null;
|
|
1004
|
+
/**
|
|
1005
|
+
* Set the newline character for emitting files.
|
|
1006
|
+
*/
|
|
1007
|
+
newLine?: (
|
|
1008
|
+
| ("crlf" | "lf")
|
|
494
1009
|
| {
|
|
495
1010
|
[k: string]: unknown;
|
|
496
1011
|
}
|
|
1012
|
+
) &
|
|
1013
|
+
(
|
|
1014
|
+
| ((
|
|
1015
|
+
| ("crlf" | "lf")
|
|
1016
|
+
| {
|
|
1017
|
+
[k: string]: unknown;
|
|
1018
|
+
}
|
|
1019
|
+
) &
|
|
1020
|
+
string)
|
|
1021
|
+
| ((
|
|
1022
|
+
| ("crlf" | "lf")
|
|
1023
|
+
| {
|
|
1024
|
+
[k: string]: unknown;
|
|
1025
|
+
}
|
|
1026
|
+
) &
|
|
1027
|
+
null)
|
|
1028
|
+
);
|
|
1029
|
+
/**
|
|
1030
|
+
* Disable emitting files from a compilation.
|
|
1031
|
+
*/
|
|
1032
|
+
noEmit?: boolean | null;
|
|
1033
|
+
/**
|
|
1034
|
+
* Disable generating custom helper functions like `__extends` in compiled output.
|
|
1035
|
+
*/
|
|
1036
|
+
noEmitHelpers?: boolean | null;
|
|
1037
|
+
/**
|
|
1038
|
+
* Disable emitting files if any type checking errors are reported.
|
|
1039
|
+
*/
|
|
1040
|
+
noEmitOnError?: boolean | null;
|
|
1041
|
+
/**
|
|
1042
|
+
* Enable error reporting for expressions and declarations with an implied `any` type.
|
|
1043
|
+
*/
|
|
1044
|
+
noImplicitAny?: boolean | null;
|
|
1045
|
+
/**
|
|
1046
|
+
* Enable error reporting when `this` is given the type `any`.
|
|
1047
|
+
*/
|
|
1048
|
+
noImplicitThis?: boolean | null;
|
|
1049
|
+
/**
|
|
1050
|
+
* Enable error reporting when local variables aren't read.
|
|
1051
|
+
*/
|
|
1052
|
+
noUnusedLocals?: boolean | null;
|
|
1053
|
+
/**
|
|
1054
|
+
* Raise an error when a function parameter isn't read.
|
|
1055
|
+
*/
|
|
1056
|
+
noUnusedParameters?: boolean | null;
|
|
1057
|
+
/**
|
|
1058
|
+
* Disable including any library files, including the default lib.d.ts.
|
|
1059
|
+
*/
|
|
1060
|
+
noLib?: boolean | null;
|
|
1061
|
+
/**
|
|
1062
|
+
* Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project.
|
|
1063
|
+
*/
|
|
1064
|
+
noResolve?: boolean | null;
|
|
1065
|
+
/**
|
|
1066
|
+
* Disable strict checking of generic signatures in function types.
|
|
1067
|
+
*/
|
|
1068
|
+
noStrictGenericChecks?: boolean | null;
|
|
1069
|
+
/**
|
|
1070
|
+
* Deprecated setting. Use `outFile` instead.
|
|
1071
|
+
*/
|
|
1072
|
+
out?: string | null;
|
|
1073
|
+
/**
|
|
1074
|
+
* Skip type checking .d.ts files that are included with TypeScript.
|
|
1075
|
+
*/
|
|
1076
|
+
skipDefaultLibCheck?: boolean | null;
|
|
1077
|
+
/**
|
|
1078
|
+
* Skip type checking all .d.ts files.
|
|
1079
|
+
*/
|
|
1080
|
+
skipLibCheck?: boolean | null;
|
|
1081
|
+
/**
|
|
1082
|
+
* Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output.
|
|
1083
|
+
*/
|
|
1084
|
+
outFile?: string | null;
|
|
1085
|
+
/**
|
|
1086
|
+
* Specify an output folder for all emitted files.
|
|
1087
|
+
*/
|
|
1088
|
+
outDir?: string | null;
|
|
1089
|
+
/**
|
|
1090
|
+
* Disable erasing `const enum` declarations in generated code.
|
|
1091
|
+
*/
|
|
1092
|
+
preserveConstEnums?: boolean | null;
|
|
1093
|
+
/**
|
|
1094
|
+
* Disable resolving symlinks to their realpath. This correlates to the same flag in node.
|
|
1095
|
+
*/
|
|
1096
|
+
preserveSymlinks?: boolean | null;
|
|
1097
|
+
/**
|
|
1098
|
+
* Preserve unused imported values in the JavaScript output that would otherwise be removed.
|
|
1099
|
+
*/
|
|
1100
|
+
preserveValueImports?: boolean | null;
|
|
1101
|
+
/**
|
|
1102
|
+
* Disable wiping the console in watch mode.
|
|
1103
|
+
*/
|
|
1104
|
+
preserveWatchOutput?: boolean | null;
|
|
1105
|
+
/**
|
|
1106
|
+
* Enable color and formatting in TypeScript's output to make compiler errors easier to read.
|
|
1107
|
+
*/
|
|
1108
|
+
pretty?: boolean | null;
|
|
1109
|
+
/**
|
|
1110
|
+
* Disable emitting comments.
|
|
1111
|
+
*/
|
|
1112
|
+
removeComments?: boolean | null;
|
|
1113
|
+
/**
|
|
1114
|
+
* Rewrite `.ts`, `.tsx`, `.mts`, and `.cts` file extensions in relative import paths to their JavaScript equivalent in output files.
|
|
1115
|
+
*/
|
|
1116
|
+
rewriteRelativeImportExtensions?: boolean | null;
|
|
1117
|
+
/**
|
|
1118
|
+
* Specify the root folder within your source files.
|
|
1119
|
+
*/
|
|
1120
|
+
rootDir?: string | null;
|
|
1121
|
+
/**
|
|
1122
|
+
* Ensure that each file can be safely transpiled without relying on other imports.
|
|
1123
|
+
*/
|
|
1124
|
+
isolatedModules?: boolean | null;
|
|
1125
|
+
/**
|
|
1126
|
+
* Create source map files for emitted JavaScript files.
|
|
1127
|
+
*/
|
|
1128
|
+
sourceMap?: boolean | null;
|
|
1129
|
+
/**
|
|
1130
|
+
* Specify the root path for debuggers to find the reference source code.
|
|
1131
|
+
*/
|
|
1132
|
+
sourceRoot?: string | null;
|
|
1133
|
+
/**
|
|
1134
|
+
* Disable reporting of excess property errors during the creation of object literals.
|
|
1135
|
+
*/
|
|
1136
|
+
suppressExcessPropertyErrors?: boolean | null;
|
|
1137
|
+
/**
|
|
1138
|
+
* Suppress `noImplicitAny` errors when indexing objects that lack index signatures.
|
|
1139
|
+
*/
|
|
1140
|
+
suppressImplicitAnyIndexErrors?: boolean | null;
|
|
1141
|
+
/**
|
|
1142
|
+
* Disable emitting declarations that have `@internal` in their JSDoc comments.
|
|
1143
|
+
*/
|
|
1144
|
+
stripInternal?: boolean | null;
|
|
1145
|
+
/**
|
|
1146
|
+
* Set the JavaScript language version for emitted JavaScript and include compatible library declarations.
|
|
1147
|
+
*/
|
|
1148
|
+
target?: (
|
|
1149
|
+
| (
|
|
1150
|
+
| "es3"
|
|
1151
|
+
| "es5"
|
|
1152
|
+
| "es6"
|
|
1153
|
+
| "es2015"
|
|
1154
|
+
| "es2016"
|
|
1155
|
+
| "es2017"
|
|
1156
|
+
| "es2018"
|
|
1157
|
+
| "es2019"
|
|
1158
|
+
| "es2020"
|
|
1159
|
+
| "es2021"
|
|
1160
|
+
| "es2022"
|
|
1161
|
+
| "es2023"
|
|
1162
|
+
| "es2024"
|
|
1163
|
+
| "esnext"
|
|
1164
|
+
)
|
|
497
1165
|
| {
|
|
498
1166
|
[k: string]: unknown;
|
|
499
1167
|
}
|
|
1168
|
+
) &
|
|
1169
|
+
(
|
|
1170
|
+
| ((
|
|
1171
|
+
| (
|
|
1172
|
+
| "es3"
|
|
1173
|
+
| "es5"
|
|
1174
|
+
| "es6"
|
|
1175
|
+
| "es2015"
|
|
1176
|
+
| "es2016"
|
|
1177
|
+
| "es2017"
|
|
1178
|
+
| "es2018"
|
|
1179
|
+
| "es2019"
|
|
1180
|
+
| "es2020"
|
|
1181
|
+
| "es2021"
|
|
1182
|
+
| "es2022"
|
|
1183
|
+
| "es2023"
|
|
1184
|
+
| "es2024"
|
|
1185
|
+
| "esnext"
|
|
1186
|
+
)
|
|
1187
|
+
| {
|
|
1188
|
+
[k: string]: unknown;
|
|
1189
|
+
}
|
|
1190
|
+
) &
|
|
1191
|
+
string)
|
|
1192
|
+
| ((
|
|
1193
|
+
| (
|
|
1194
|
+
| "es3"
|
|
1195
|
+
| "es5"
|
|
1196
|
+
| "es6"
|
|
1197
|
+
| "es2015"
|
|
1198
|
+
| "es2016"
|
|
1199
|
+
| "es2017"
|
|
1200
|
+
| "es2018"
|
|
1201
|
+
| "es2019"
|
|
1202
|
+
| "es2020"
|
|
1203
|
+
| "es2021"
|
|
1204
|
+
| "es2022"
|
|
1205
|
+
| "es2023"
|
|
1206
|
+
| "es2024"
|
|
1207
|
+
| "esnext"
|
|
1208
|
+
)
|
|
1209
|
+
| {
|
|
1210
|
+
[k: string]: unknown;
|
|
1211
|
+
}
|
|
1212
|
+
) &
|
|
1213
|
+
null)
|
|
1214
|
+
);
|
|
1215
|
+
/**
|
|
1216
|
+
* Default catch clause variables as `unknown` instead of `any`.
|
|
1217
|
+
*/
|
|
1218
|
+
useUnknownInCatchVariables?: boolean | null;
|
|
1219
|
+
/**
|
|
1220
|
+
* Watch input files.
|
|
1221
|
+
*/
|
|
1222
|
+
watch?: boolean | null;
|
|
1223
|
+
/**
|
|
1224
|
+
* Specify the polling strategy to use when the system runs out of or doesn't support native file watchers. Requires TypeScript version 3.8 or later.
|
|
1225
|
+
*/
|
|
1226
|
+
fallbackPolling?:
|
|
1227
|
+
| "fixedPollingInterval"
|
|
1228
|
+
| "priorityPollingInterval"
|
|
1229
|
+
| "dynamicPriorityPolling"
|
|
1230
|
+
| "fixedInterval"
|
|
1231
|
+
| "priorityInterval"
|
|
1232
|
+
| "dynamicPriority"
|
|
1233
|
+
| "fixedChunkSize";
|
|
1234
|
+
/**
|
|
1235
|
+
* Specify the strategy for watching directories under systems that lack recursive file-watching functionality. Requires TypeScript version 3.8 or later.
|
|
1236
|
+
*/
|
|
1237
|
+
watchDirectory?: "useFsEvents" | "fixedPollingInterval" | "dynamicPriorityPolling" | "fixedChunkSizePolling";
|
|
1238
|
+
/**
|
|
1239
|
+
* Specify the strategy for watching individual files. Requires TypeScript version 3.8 or later.
|
|
1240
|
+
*/
|
|
1241
|
+
watchFile?:
|
|
1242
|
+
| "fixedPollingInterval"
|
|
1243
|
+
| "priorityPollingInterval"
|
|
1244
|
+
| "dynamicPriorityPolling"
|
|
1245
|
+
| "useFsEvents"
|
|
1246
|
+
| "useFsEventsOnParentDirectory"
|
|
1247
|
+
| "fixedChunkSizePolling";
|
|
1248
|
+
/**
|
|
1249
|
+
* Enable experimental support for legacy experimental decorators.
|
|
1250
|
+
*/
|
|
1251
|
+
experimentalDecorators?: boolean | null;
|
|
1252
|
+
/**
|
|
1253
|
+
* Emit design-type metadata for decorated declarations in source files.
|
|
1254
|
+
*/
|
|
1255
|
+
emitDecoratorMetadata?: boolean | null;
|
|
1256
|
+
/**
|
|
1257
|
+
* Disable error reporting for unused labels.
|
|
1258
|
+
*/
|
|
1259
|
+
allowUnusedLabels?: boolean | null;
|
|
1260
|
+
/**
|
|
1261
|
+
* Enable error reporting for codepaths that do not explicitly return in a function.
|
|
1262
|
+
*/
|
|
1263
|
+
noImplicitReturns?: boolean | null;
|
|
1264
|
+
/**
|
|
1265
|
+
* Add `undefined` to a type when accessed using an index.
|
|
1266
|
+
*/
|
|
1267
|
+
noUncheckedIndexedAccess?: boolean | null;
|
|
1268
|
+
/**
|
|
1269
|
+
* Enable error reporting for fallthrough cases in switch statements.
|
|
1270
|
+
*/
|
|
1271
|
+
noFallthroughCasesInSwitch?: boolean | null;
|
|
1272
|
+
/**
|
|
1273
|
+
* Ensure overriding members in derived classes are marked with an override modifier.
|
|
1274
|
+
*/
|
|
1275
|
+
noImplicitOverride?: boolean | null;
|
|
1276
|
+
/**
|
|
1277
|
+
* Disable error reporting for unreachable code.
|
|
1278
|
+
*/
|
|
1279
|
+
allowUnreachableCode?: boolean | null;
|
|
1280
|
+
/**
|
|
1281
|
+
* Ensure that casing is correct in imports.
|
|
1282
|
+
*/
|
|
1283
|
+
forceConsistentCasingInFileNames?: boolean | null;
|
|
1284
|
+
/**
|
|
1285
|
+
* Emit a v8 CPU profile of the compiler run for debugging.
|
|
1286
|
+
*/
|
|
1287
|
+
generateCpuProfile?: string | null;
|
|
1288
|
+
/**
|
|
1289
|
+
* Specify the base directory to resolve non-relative module names.
|
|
1290
|
+
*/
|
|
1291
|
+
baseUrl?: string | null;
|
|
1292
|
+
/**
|
|
1293
|
+
* Specify a set of entries that re-map imports to additional lookup locations.
|
|
1294
|
+
*/
|
|
1295
|
+
paths?: {
|
|
1296
|
+
[k: string]: string[] | null;
|
|
1297
|
+
} | null;
|
|
1298
|
+
/**
|
|
1299
|
+
* Specify a list of language service plugins to include.
|
|
1300
|
+
*/
|
|
1301
|
+
plugins?:
|
|
500
1302
|
| {
|
|
1303
|
+
/**
|
|
1304
|
+
* Plugin name.
|
|
1305
|
+
*/
|
|
1306
|
+
name?: string;
|
|
501
1307
|
[k: string]: unknown;
|
|
502
|
-
}
|
|
503
|
-
|
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
1308
|
+
}[]
|
|
1309
|
+
| null;
|
|
1310
|
+
/**
|
|
1311
|
+
* Allow multiple folders to be treated as one when resolving modules.
|
|
1312
|
+
*/
|
|
1313
|
+
rootDirs?: string[] | null;
|
|
1314
|
+
/**
|
|
1315
|
+
* Specify multiple folders that act like `./node_modules/@types`.
|
|
1316
|
+
*/
|
|
1317
|
+
typeRoots?: string[] | null;
|
|
1318
|
+
/**
|
|
1319
|
+
* Specify type package names to be included without being referenced in a source file.
|
|
1320
|
+
*/
|
|
1321
|
+
types?: string[] | null;
|
|
1322
|
+
/**
|
|
1323
|
+
* Log paths used during the `moduleResolution` process.
|
|
1324
|
+
*/
|
|
1325
|
+
traceResolution?: boolean | null;
|
|
1326
|
+
/**
|
|
1327
|
+
* Allow JavaScript files to be a part of your program. Use the `checkJs` option to get errors from these files.
|
|
1328
|
+
*/
|
|
1329
|
+
allowJs?: boolean | null;
|
|
1330
|
+
/**
|
|
1331
|
+
* Disable truncating types in error messages.
|
|
1332
|
+
*/
|
|
1333
|
+
noErrorTruncation?: boolean | null;
|
|
1334
|
+
/**
|
|
1335
|
+
* Allow `import x from y` when a module doesn't have a default export.
|
|
1336
|
+
*/
|
|
1337
|
+
allowSyntheticDefaultImports?: boolean | null;
|
|
1338
|
+
/**
|
|
1339
|
+
* Disable adding `use strict` directives in emitted JavaScript files.
|
|
1340
|
+
*/
|
|
1341
|
+
noImplicitUseStrict?: boolean | null;
|
|
1342
|
+
/**
|
|
1343
|
+
* Print the names of emitted files after a compilation.
|
|
1344
|
+
*/
|
|
1345
|
+
listEmittedFiles?: boolean | null;
|
|
1346
|
+
/**
|
|
1347
|
+
* Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server.
|
|
1348
|
+
*/
|
|
1349
|
+
disableSizeLimit?: boolean | null;
|
|
1350
|
+
/**
|
|
1351
|
+
* Specify a set of bundled library declaration files that describe the target runtime environment.
|
|
1352
|
+
*/
|
|
1353
|
+
lib?:
|
|
1354
|
+
| ((
|
|
1355
|
+
| (
|
|
1356
|
+
| "ES5"
|
|
1357
|
+
| "ES6"
|
|
1358
|
+
| "ES2015"
|
|
1359
|
+
| "ES2015.Collection"
|
|
1360
|
+
| "ES2015.Core"
|
|
1361
|
+
| "ES2015.Generator"
|
|
1362
|
+
| "ES2015.Iterable"
|
|
1363
|
+
| "ES2015.Promise"
|
|
1364
|
+
| "ES2015.Proxy"
|
|
1365
|
+
| "ES2015.Reflect"
|
|
1366
|
+
| "ES2015.Symbol.WellKnown"
|
|
1367
|
+
| "ES2015.Symbol"
|
|
1368
|
+
| "ES2016"
|
|
1369
|
+
| "ES2016.Array.Include"
|
|
1370
|
+
| "ES2017"
|
|
1371
|
+
| "ES2017.Intl"
|
|
1372
|
+
| "ES2017.Object"
|
|
1373
|
+
| "ES2017.SharedMemory"
|
|
1374
|
+
| "ES2017.String"
|
|
1375
|
+
| "ES2017.TypedArrays"
|
|
1376
|
+
| "ES2017.ArrayBuffer"
|
|
1377
|
+
| "ES2018"
|
|
1378
|
+
| "ES2018.AsyncGenerator"
|
|
1379
|
+
| "ES2018.AsyncIterable"
|
|
1380
|
+
| "ES2018.Intl"
|
|
1381
|
+
| "ES2018.Promise"
|
|
1382
|
+
| "ES2018.Regexp"
|
|
1383
|
+
| "ES2019"
|
|
1384
|
+
| "ES2019.Array"
|
|
1385
|
+
| "ES2019.Intl"
|
|
1386
|
+
| "ES2019.Object"
|
|
1387
|
+
| "ES2019.String"
|
|
1388
|
+
| "ES2019.Symbol"
|
|
1389
|
+
| "ES2020"
|
|
1390
|
+
| "ES2020.BigInt"
|
|
1391
|
+
| "ES2020.Promise"
|
|
1392
|
+
| "ES2020.String"
|
|
1393
|
+
| "ES2020.Symbol.WellKnown"
|
|
1394
|
+
| "ESNext"
|
|
1395
|
+
| "ESNext.Array"
|
|
1396
|
+
| "ESNext.AsyncIterable"
|
|
1397
|
+
| "ESNext.BigInt"
|
|
1398
|
+
| "ESNext.Collection"
|
|
1399
|
+
| "ESNext.Intl"
|
|
1400
|
+
| "ESNext.Iterator"
|
|
1401
|
+
| "ESNext.Object"
|
|
1402
|
+
| "ESNext.Promise"
|
|
1403
|
+
| "ESNext.Regexp"
|
|
1404
|
+
| "ESNext.String"
|
|
1405
|
+
| "ESNext.Symbol"
|
|
1406
|
+
| "DOM"
|
|
1407
|
+
| "DOM.AsyncIterable"
|
|
1408
|
+
| "DOM.Iterable"
|
|
1409
|
+
| "ScriptHost"
|
|
1410
|
+
| "WebWorker"
|
|
1411
|
+
| "WebWorker.AsyncIterable"
|
|
1412
|
+
| "WebWorker.ImportScripts"
|
|
1413
|
+
| "Webworker.Iterable"
|
|
1414
|
+
| "ES7"
|
|
1415
|
+
| "ES2021"
|
|
1416
|
+
| "ES2020.SharedMemory"
|
|
1417
|
+
| "ES2020.Intl"
|
|
1418
|
+
| "ES2020.Date"
|
|
1419
|
+
| "ES2020.Number"
|
|
1420
|
+
| "ES2021.Promise"
|
|
1421
|
+
| "ES2021.String"
|
|
1422
|
+
| "ES2021.WeakRef"
|
|
1423
|
+
| "ESNext.WeakRef"
|
|
1424
|
+
| "ES2021.Intl"
|
|
1425
|
+
| "ES2022"
|
|
1426
|
+
| "ES2022.Array"
|
|
1427
|
+
| "ES2022.Error"
|
|
1428
|
+
| "ES2022.Intl"
|
|
1429
|
+
| "ES2022.Object"
|
|
1430
|
+
| "ES2022.String"
|
|
1431
|
+
| "ES2022.SharedMemory"
|
|
1432
|
+
| "ES2022.RegExp"
|
|
1433
|
+
| "ES2023"
|
|
1434
|
+
| "ES2023.Array"
|
|
1435
|
+
| "ES2024"
|
|
1436
|
+
| "ES2024.ArrayBuffer"
|
|
1437
|
+
| "ES2024.Collection"
|
|
1438
|
+
| "ES2024.Object"
|
|
1439
|
+
| "ES2024.Promise"
|
|
1440
|
+
| "ES2024.Regexp"
|
|
1441
|
+
| "ES2024.SharedMemory"
|
|
1442
|
+
| "ES2024.String"
|
|
1443
|
+
| "Decorators"
|
|
1444
|
+
| "Decorators.Legacy"
|
|
1445
|
+
| "ES2017.Date"
|
|
1446
|
+
| "ES2023.Collection"
|
|
1447
|
+
| "ESNext.Decorators"
|
|
1448
|
+
| "ESNext.Disposable"
|
|
1449
|
+
| "ESNext.Error"
|
|
1450
|
+
| "ESNext.Sharedmemory"
|
|
1451
|
+
)
|
|
1452
|
+
| {
|
|
1453
|
+
[k: string]: unknown;
|
|
1454
|
+
}
|
|
1455
|
+
) &
|
|
1456
|
+
string)[]
|
|
1457
|
+
| null;
|
|
1458
|
+
/**
|
|
1459
|
+
* Enable lib replacement.
|
|
1460
|
+
*/
|
|
1461
|
+
libReplacement?: boolean | null;
|
|
529
1462
|
/**
|
|
530
|
-
*
|
|
1463
|
+
* Control what method is used to detect module-format JS files.
|
|
531
1464
|
*/
|
|
532
1465
|
moduleDetection?: "auto" | "legacy" | "force";
|
|
533
1466
|
/**
|
|
534
1467
|
* When type checking, take into account `null` and `undefined`.
|
|
535
1468
|
*/
|
|
536
|
-
strictNullChecks?: boolean;
|
|
1469
|
+
strictNullChecks?: boolean | null;
|
|
537
1470
|
/**
|
|
538
1471
|
* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`.
|
|
539
1472
|
*/
|
|
540
|
-
maxNodeModuleJsDepth?: number;
|
|
1473
|
+
maxNodeModuleJsDepth?: number | null;
|
|
541
1474
|
/**
|
|
542
1475
|
* Allow importing helper functions from tslib once per project, instead of including them per-file.
|
|
543
1476
|
*/
|
|
544
|
-
importHelpers?: boolean;
|
|
1477
|
+
importHelpers?: boolean | null;
|
|
545
1478
|
/**
|
|
546
1479
|
* Specify emit/checking behavior for imports that are only used for types.
|
|
547
1480
|
*/
|
|
548
1481
|
importsNotUsedAsValues?: "remove" | "preserve" | "error";
|
|
549
1482
|
/**
|
|
550
|
-
* Ensure
|
|
1483
|
+
* Ensure `use strict` is always emitted.
|
|
551
1484
|
*/
|
|
552
|
-
alwaysStrict?: boolean;
|
|
1485
|
+
alwaysStrict?: boolean | null;
|
|
553
1486
|
/**
|
|
554
|
-
* Enable all strict type
|
|
1487
|
+
* Enable all strict type-checking options.
|
|
555
1488
|
*/
|
|
556
|
-
strict?: boolean;
|
|
1489
|
+
strict?: boolean | null;
|
|
557
1490
|
/**
|
|
558
1491
|
* Check that the arguments for `bind`, `call`, and `apply` methods match the original function.
|
|
559
1492
|
*/
|
|
560
|
-
strictBindCallApply?: boolean;
|
|
1493
|
+
strictBindCallApply?: boolean | null;
|
|
561
1494
|
/**
|
|
562
1495
|
* Emit more compliant, but verbose and less performant JavaScript for iteration.
|
|
563
1496
|
*/
|
|
564
|
-
downlevelIteration?: boolean;
|
|
1497
|
+
downlevelIteration?: boolean | null;
|
|
565
1498
|
/**
|
|
566
1499
|
* Enable error reporting in type-checked JavaScript files.
|
|
567
1500
|
*/
|
|
568
|
-
checkJs?: boolean;
|
|
1501
|
+
checkJs?: boolean | null;
|
|
569
1502
|
/**
|
|
570
1503
|
* When assigning functions, check to ensure parameters and the return values are subtype-compatible.
|
|
571
1504
|
*/
|
|
572
|
-
strictFunctionTypes?: boolean;
|
|
1505
|
+
strictFunctionTypes?: boolean | null;
|
|
573
1506
|
/**
|
|
574
1507
|
* Check for class properties that are declared but not set in the constructor.
|
|
575
1508
|
*/
|
|
576
|
-
strictPropertyInitialization?: boolean;
|
|
1509
|
+
strictPropertyInitialization?: boolean | null;
|
|
577
1510
|
/**
|
|
578
1511
|
* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility.
|
|
579
1512
|
*/
|
|
580
|
-
esModuleInterop?: boolean;
|
|
1513
|
+
esModuleInterop?: boolean | null;
|
|
581
1514
|
/**
|
|
582
1515
|
* Allow accessing UMD globals from modules.
|
|
583
1516
|
*/
|
|
584
|
-
allowUmdGlobalAccess?: boolean;
|
|
1517
|
+
allowUmdGlobalAccess?: boolean | null;
|
|
585
1518
|
/**
|
|
586
1519
|
* Make keyof only return strings instead of string, numbers or symbols. Legacy option.
|
|
587
1520
|
*/
|
|
588
|
-
keyofStringsOnly?: boolean;
|
|
1521
|
+
keyofStringsOnly?: boolean | null;
|
|
589
1522
|
/**
|
|
590
1523
|
* Emit ECMAScript-standard-compliant class fields.
|
|
591
1524
|
*/
|
|
592
|
-
useDefineForClassFields?: boolean;
|
|
1525
|
+
useDefineForClassFields?: boolean | null;
|
|
593
1526
|
/**
|
|
594
1527
|
* Create sourcemaps for d.ts files.
|
|
595
1528
|
*/
|
|
596
|
-
declarationMap?: boolean;
|
|
1529
|
+
declarationMap?: boolean | null;
|
|
597
1530
|
/**
|
|
598
|
-
* Enable importing .json files
|
|
1531
|
+
* Enable importing .json files.
|
|
599
1532
|
*/
|
|
600
|
-
resolveJsonModule?: boolean;
|
|
1533
|
+
resolveJsonModule?: boolean | null;
|
|
601
1534
|
/**
|
|
602
|
-
*
|
|
1535
|
+
* Use the package.json 'exports' field when resolving package imports.
|
|
603
1536
|
*/
|
|
604
|
-
|
|
1537
|
+
resolvePackageJsonExports?: boolean | null;
|
|
1538
|
+
/**
|
|
1539
|
+
* Use the package.json 'imports' field when resolving imports.
|
|
1540
|
+
*/
|
|
1541
|
+
resolvePackageJsonImports?: boolean | null;
|
|
1542
|
+
/**
|
|
1543
|
+
* Have recompiles in projects that use `incremental` and `watch` mode assume that changes within a file will only affect files directly depending on it.
|
|
1544
|
+
*/
|
|
1545
|
+
assumeChangesOnlyAffectDirectDependencies?: boolean | null;
|
|
605
1546
|
/**
|
|
606
1547
|
* Output more detailed compiler performance information after building.
|
|
607
1548
|
*/
|
|
608
|
-
extendedDiagnostics?: boolean;
|
|
1549
|
+
extendedDiagnostics?: boolean | null;
|
|
609
1550
|
/**
|
|
610
1551
|
* Print names of files that are part of the compilation and then stop processing.
|
|
611
1552
|
*/
|
|
612
|
-
listFilesOnly?: boolean;
|
|
1553
|
+
listFilesOnly?: boolean | null;
|
|
613
1554
|
/**
|
|
614
|
-
* Disable preferring source files instead of declaration files when referencing composite projects
|
|
1555
|
+
* Disable preferring source files instead of declaration files when referencing composite projects.
|
|
615
1556
|
*/
|
|
616
|
-
disableSourceOfProjectReferenceRedirect?: boolean;
|
|
1557
|
+
disableSourceOfProjectReferenceRedirect?: boolean | null;
|
|
617
1558
|
/**
|
|
618
1559
|
* Opt a project out of multi-project reference checking when editing.
|
|
619
1560
|
*/
|
|
620
|
-
disableSolutionSearching?: boolean;
|
|
1561
|
+
disableSolutionSearching?: boolean | null;
|
|
1562
|
+
/**
|
|
1563
|
+
* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the `module` setting.
|
|
1564
|
+
*/
|
|
1565
|
+
verbatimModuleSyntax?: boolean | null;
|
|
1566
|
+
/**
|
|
1567
|
+
* Disable full type checking (only critical parse and emit errors will be reported).
|
|
1568
|
+
*/
|
|
1569
|
+
noCheck?: boolean | null;
|
|
1570
|
+
/**
|
|
1571
|
+
* Require sufficient annotation on exports so other tools can trivially generate declaration files.
|
|
1572
|
+
*/
|
|
1573
|
+
isolatedDeclarations?: boolean | null;
|
|
1574
|
+
/**
|
|
1575
|
+
* Check side effect imports.
|
|
1576
|
+
*/
|
|
1577
|
+
noUncheckedSideEffectImports?: boolean | null;
|
|
1578
|
+
/**
|
|
1579
|
+
* Built-in iterators are instantiated with a `TReturn` type of `undefined` instead of `any`.
|
|
1580
|
+
*/
|
|
1581
|
+
strictBuiltinIteratorReturn?: boolean | null;
|
|
1582
|
+
[k: string]: unknown;
|
|
1583
|
+
} | null);
|
|
1584
|
+
/**
|
|
1585
|
+
* Override certain paths to be compiled and executed as CommonJS or ECMAScript modules.
|
|
1586
|
+
* When overridden, the tsconfig "module" and package.json "type" fields are overridden, and
|
|
1587
|
+
* the file extension is ignored.
|
|
1588
|
+
* This is useful if you cannot use .mts, .cts, .mjs, or .cjs file extensions;
|
|
1589
|
+
* it achieves the same effect.
|
|
1590
|
+
*
|
|
1591
|
+
* Each key is a glob pattern following the same rules as tsconfig's "include" array.
|
|
1592
|
+
* When multiple patterns match the same file, the last pattern takes precedence.
|
|
1593
|
+
*
|
|
1594
|
+
* `cjs` overrides matches files to compile and execute as CommonJS.
|
|
1595
|
+
* `esm` overrides matches files to compile and execute as native ECMAScript modules.
|
|
1596
|
+
* `package` overrides either of the above to default behavior, which obeys package.json "type" and
|
|
1597
|
+
* tsconfig.json "module" options.
|
|
1598
|
+
*/
|
|
1599
|
+
export type TsNodeModuleTypes = {
|
|
1600
|
+
[k: string]: unknown;
|
|
1601
|
+
} | null;
|
|
1602
|
+
|
|
1603
|
+
export interface CompilerOptionsDefinition {
|
|
1604
|
+
compilerOptions?: CompilerOptions;
|
|
621
1605
|
[k: string]: unknown;
|
|
622
1606
|
}
|
|
623
1607
|
export interface CompileOnSaveDefinition {
|
|
624
1608
|
/**
|
|
625
1609
|
* Enable Compile-on-Save for this project.
|
|
626
1610
|
*/
|
|
627
|
-
compileOnSave?: boolean;
|
|
1611
|
+
compileOnSave?: boolean | null;
|
|
628
1612
|
[k: string]: unknown;
|
|
629
1613
|
}
|
|
630
1614
|
export interface TypeAcquisitionDefinition {
|
|
@@ -635,24 +1619,24 @@ export interface TypeAcquisitionDefinition {
|
|
|
635
1619
|
/**
|
|
636
1620
|
* Enable auto type acquisition
|
|
637
1621
|
*/
|
|
638
|
-
enable?: boolean;
|
|
1622
|
+
enable?: boolean | null;
|
|
639
1623
|
/**
|
|
640
1624
|
* Specifies a list of type declarations to be included in auto type acquisition. Ex. ["jquery", "lodash"]
|
|
641
1625
|
*/
|
|
642
|
-
include?: string[];
|
|
1626
|
+
include?: string[] | null;
|
|
643
1627
|
/**
|
|
644
1628
|
* Specifies a list of type declarations to be excluded from auto type acquisition. Ex. ["jquery", "lodash"]
|
|
645
1629
|
*/
|
|
646
|
-
exclude?: string[];
|
|
1630
|
+
exclude?: string[] | null;
|
|
647
1631
|
[k: string]: unknown;
|
|
648
|
-
};
|
|
1632
|
+
} | null;
|
|
649
1633
|
[k: string]: unknown;
|
|
650
1634
|
}
|
|
651
1635
|
export interface ExtendsDefinition {
|
|
652
1636
|
/**
|
|
653
|
-
* Path to base configuration file to inherit from
|
|
1637
|
+
* Path to base configuration file to inherit from (requires TypeScript version 2.1 or later), or array of base files, with the rightmost files having the greater priority (requires TypeScript version 5.0 or later).
|
|
654
1638
|
*/
|
|
655
|
-
extends?: string;
|
|
1639
|
+
extends?: string | string[];
|
|
656
1640
|
[k: string]: unknown;
|
|
657
1641
|
}
|
|
658
1642
|
export interface WatchOptionsDefinition {
|
|
@@ -663,33 +1647,33 @@ export interface WatchOptionsDefinition {
|
|
|
663
1647
|
/**
|
|
664
1648
|
* ~
|
|
665
1649
|
*/
|
|
666
|
-
force?: string;
|
|
1650
|
+
force?: string | null;
|
|
667
1651
|
/**
|
|
668
1652
|
* Specify how the TypeScript watch mode works.
|
|
669
1653
|
*/
|
|
670
|
-
watchFile?: string;
|
|
1654
|
+
watchFile?: string | null;
|
|
671
1655
|
/**
|
|
672
1656
|
* Specify how directories are watched on systems that lack recursive file-watching functionality.
|
|
673
1657
|
*/
|
|
674
|
-
watchDirectory?: string;
|
|
1658
|
+
watchDirectory?: string | null;
|
|
675
1659
|
/**
|
|
676
1660
|
* Specify what approach the watcher should use if the system runs out of native file watchers.
|
|
677
1661
|
*/
|
|
678
|
-
fallbackPolling?: string;
|
|
1662
|
+
fallbackPolling?: string | null;
|
|
679
1663
|
/**
|
|
680
1664
|
* Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively.
|
|
681
1665
|
*/
|
|
682
|
-
synchronousWatchDirectory?: boolean;
|
|
1666
|
+
synchronousWatchDirectory?: boolean | null;
|
|
683
1667
|
/**
|
|
684
1668
|
* Remove a list of files from the watch mode's processing.
|
|
685
1669
|
*/
|
|
686
|
-
excludeFiles?: string[];
|
|
1670
|
+
excludeFiles?: string[] | null;
|
|
687
1671
|
/**
|
|
688
1672
|
* Remove a list of directories from the watch process.
|
|
689
1673
|
*/
|
|
690
|
-
excludeDirectories?: string[];
|
|
1674
|
+
excludeDirectories?: string[] | null;
|
|
691
1675
|
[k: string]: unknown;
|
|
692
|
-
};
|
|
1676
|
+
} | null;
|
|
693
1677
|
[k: string]: unknown;
|
|
694
1678
|
}
|
|
695
1679
|
export interface BuildOptionsDefinition {
|
|
@@ -697,27 +1681,27 @@ export interface BuildOptionsDefinition {
|
|
|
697
1681
|
/**
|
|
698
1682
|
* ~
|
|
699
1683
|
*/
|
|
700
|
-
dry?: boolean;
|
|
1684
|
+
dry?: boolean | null;
|
|
701
1685
|
/**
|
|
702
1686
|
* Build all projects, including those that appear to be up to date
|
|
703
1687
|
*/
|
|
704
|
-
force?: boolean;
|
|
1688
|
+
force?: boolean | null;
|
|
705
1689
|
/**
|
|
706
1690
|
* Enable verbose logging
|
|
707
1691
|
*/
|
|
708
|
-
verbose?: boolean;
|
|
1692
|
+
verbose?: boolean | null;
|
|
709
1693
|
/**
|
|
710
1694
|
* Save .tsbuildinfo files to allow for incremental compilation of projects.
|
|
711
1695
|
*/
|
|
712
|
-
incremental?: boolean;
|
|
1696
|
+
incremental?: boolean | null;
|
|
713
1697
|
/**
|
|
714
1698
|
* Have recompiles in projects that use `incremental` and `watch` mode assume that changes within a file will only affect files directly depending on it.
|
|
715
1699
|
*/
|
|
716
|
-
assumeChangesOnlyAffectDirectDependencies?: boolean;
|
|
1700
|
+
assumeChangesOnlyAffectDirectDependencies?: boolean | null;
|
|
717
1701
|
/**
|
|
718
1702
|
* Log paths used during the `moduleResolution` process.
|
|
719
1703
|
*/
|
|
720
|
-
traceResolution?: boolean;
|
|
1704
|
+
traceResolution?: boolean | null;
|
|
721
1705
|
[k: string]: unknown;
|
|
722
1706
|
};
|
|
723
1707
|
[k: string]: unknown;
|
|
@@ -732,25 +1716,28 @@ export interface TsNodeDefinition {
|
|
|
732
1716
|
/**
|
|
733
1717
|
* Specify a custom TypeScript compiler.
|
|
734
1718
|
*/
|
|
735
|
-
compiler?: string;
|
|
1719
|
+
compiler?: string | null;
|
|
736
1720
|
/**
|
|
737
1721
|
* Use TypeScript's compiler host API instead of the language service API.
|
|
738
1722
|
*/
|
|
739
|
-
compilerHost?: boolean;
|
|
1723
|
+
compilerHost?: boolean | null;
|
|
740
1724
|
/**
|
|
741
1725
|
* JSON object to merge with TypeScript `compilerOptions`.
|
|
742
1726
|
*/
|
|
743
|
-
compilerOptions?: CompilerOptions
|
|
1727
|
+
compilerOptions?: CompilerOptions &
|
|
1728
|
+
({
|
|
1729
|
+
[k: string]: unknown;
|
|
1730
|
+
} | null);
|
|
744
1731
|
/**
|
|
745
1732
|
* Emit output files into `.ts-node` directory.
|
|
746
1733
|
*/
|
|
747
|
-
emit?: boolean;
|
|
1734
|
+
emit?: boolean | null;
|
|
748
1735
|
/**
|
|
749
1736
|
* Enable native ESM support.
|
|
750
1737
|
*
|
|
751
1738
|
* For details, see https://typestrong.org/ts-node/docs/imports#native-ecmascript-modules
|
|
752
1739
|
*/
|
|
753
|
-
esm?: boolean;
|
|
1740
|
+
esm?: boolean | null;
|
|
754
1741
|
/**
|
|
755
1742
|
* Allows the usage of top level await in REPL.
|
|
756
1743
|
*
|
|
@@ -761,7 +1748,7 @@ export interface TsNodeDefinition {
|
|
|
761
1748
|
* **Note**: setting to `true` when tsconfig target is too low will throw an Error. Leave as `undefined`
|
|
762
1749
|
* to get default, automatic behavior.
|
|
763
1750
|
*/
|
|
764
|
-
experimentalReplAwait?: boolean;
|
|
1751
|
+
experimentalReplAwait?: boolean | null;
|
|
765
1752
|
/**
|
|
766
1753
|
* Enable experimental features that re-map imports and require calls to support:
|
|
767
1754
|
* `baseUrl`, `paths`, `rootDirs`, `.js` to `.ts` file extension mappings,
|
|
@@ -769,19 +1756,19 @@ export interface TsNodeDefinition {
|
|
|
769
1756
|
*
|
|
770
1757
|
* For details, see https://github.com/TypeStrong/ts-node/issues/1514
|
|
771
1758
|
*/
|
|
772
|
-
experimentalResolver?: boolean;
|
|
1759
|
+
experimentalResolver?: boolean | null;
|
|
773
1760
|
/**
|
|
774
1761
|
* Like node's `--experimental-specifier-resolution`, , but can also be set in your `tsconfig.json` for convenience.
|
|
775
1762
|
*
|
|
776
1763
|
* For details, see https://nodejs.org/dist/latest-v18.x/docs/api/esm.html#customizing-esm-specifier-resolution-algorithm
|
|
777
1764
|
*/
|
|
778
|
-
experimentalSpecifierResolution?: "explicit" | "node";
|
|
1765
|
+
experimentalSpecifierResolution?: ("explicit" | "node") | null;
|
|
779
1766
|
/**
|
|
780
1767
|
* Load "files" and "include" from `tsconfig.json` on startup.
|
|
781
1768
|
*
|
|
782
1769
|
* Default is to override `tsconfig.json` "files" and "include" to only include the entrypoint script.
|
|
783
1770
|
*/
|
|
784
|
-
files?: boolean;
|
|
1771
|
+
files?: boolean | null;
|
|
785
1772
|
/**
|
|
786
1773
|
* Paths which should not be compiled.
|
|
787
1774
|
*
|
|
@@ -791,26 +1778,26 @@ export interface TsNodeDefinition {
|
|
|
791
1778
|
*
|
|
792
1779
|
* Default is to ignore all node_modules subdirectories.
|
|
793
1780
|
*/
|
|
794
|
-
ignore?: string[];
|
|
1781
|
+
ignore?: string[] | null;
|
|
795
1782
|
/**
|
|
796
1783
|
* Ignore TypeScript warnings by diagnostic code.
|
|
797
1784
|
*/
|
|
798
|
-
ignoreDiagnostics?: (string | number)[];
|
|
1785
|
+
ignoreDiagnostics?: (string | number)[] | null;
|
|
799
1786
|
/**
|
|
800
1787
|
* Logs TypeScript errors to stderr instead of throwing exceptions.
|
|
801
1788
|
*/
|
|
802
|
-
logError?: boolean;
|
|
1789
|
+
logError?: boolean | null;
|
|
803
1790
|
moduleTypes?: TsNodeModuleTypes;
|
|
804
1791
|
/**
|
|
805
1792
|
* Re-order file extensions so that TypeScript imports are preferred.
|
|
806
1793
|
*
|
|
807
1794
|
* For example, when both `index.js` and `index.ts` exist, enabling this option causes `require('./index')` to resolve to `index.ts` instead of `index.js`
|
|
808
1795
|
*/
|
|
809
|
-
preferTsExts?: boolean;
|
|
1796
|
+
preferTsExts?: boolean | null;
|
|
810
1797
|
/**
|
|
811
1798
|
* Use pretty diagnostic formatter.
|
|
812
1799
|
*/
|
|
813
|
-
pretty?: boolean;
|
|
1800
|
+
pretty?: boolean | null;
|
|
814
1801
|
/**
|
|
815
1802
|
* Modules to require, like node's `--require` flag.
|
|
816
1803
|
*
|
|
@@ -819,16 +1806,16 @@ export interface TsNodeDefinition {
|
|
|
819
1806
|
* If specified programmatically, each input string should be pre-resolved to an absolute path for
|
|
820
1807
|
* best results.
|
|
821
1808
|
*/
|
|
822
|
-
require?: string[];
|
|
1809
|
+
require?: string[] | null;
|
|
823
1810
|
/**
|
|
824
1811
|
* Scope compiler to files within `scopeDir`.
|
|
825
1812
|
*/
|
|
826
|
-
scope?: boolean;
|
|
827
|
-
scopeDir?: string;
|
|
1813
|
+
scope?: boolean | null;
|
|
1814
|
+
scopeDir?: string | null;
|
|
828
1815
|
/**
|
|
829
1816
|
* Skip ignore check, so that compilation will be attempted for all files with matching extensions.
|
|
830
1817
|
*/
|
|
831
|
-
skipIgnore?: boolean;
|
|
1818
|
+
skipIgnore?: boolean | null;
|
|
832
1819
|
/**
|
|
833
1820
|
* Transpile with swc instead of the TypeScript compiler, and skip typechecking.
|
|
834
1821
|
*
|
|
@@ -836,67 +1823,52 @@ export interface TsNodeDefinition {
|
|
|
836
1823
|
*
|
|
837
1824
|
* For complete instructions: https://typestrong.org/ts-node/docs/transpilers
|
|
838
1825
|
*/
|
|
839
|
-
swc?: boolean;
|
|
1826
|
+
swc?: boolean | null;
|
|
840
1827
|
/**
|
|
841
1828
|
* Use TypeScript's faster `transpileModule`.
|
|
842
1829
|
*/
|
|
843
|
-
transpileOnly?: boolean;
|
|
1830
|
+
transpileOnly?: boolean | null;
|
|
844
1831
|
/**
|
|
845
1832
|
* Specify a custom transpiler for use with transpileOnly
|
|
846
1833
|
*/
|
|
847
1834
|
transpiler?:
|
|
848
|
-
|
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
1835
|
+
| (
|
|
1836
|
+
| [
|
|
1837
|
+
string | null,
|
|
1838
|
+
{
|
|
1839
|
+
[k: string]: unknown;
|
|
1840
|
+
} | null
|
|
1841
|
+
]
|
|
1842
|
+
| null
|
|
1843
|
+
)
|
|
1844
|
+
| (string | null);
|
|
855
1845
|
/**
|
|
856
1846
|
* **DEPRECATED** Specify type-check is enabled (e.g. `transpileOnly == false`).
|
|
857
1847
|
*/
|
|
858
|
-
typeCheck?: boolean;
|
|
1848
|
+
typeCheck?: boolean | null;
|
|
859
1849
|
[k: string]: unknown;
|
|
860
|
-
};
|
|
861
|
-
[k: string]: unknown;
|
|
862
|
-
}
|
|
863
|
-
/**
|
|
864
|
-
* Override certain paths to be compiled and executed as CommonJS or ECMAScript modules.
|
|
865
|
-
* When overridden, the tsconfig "module" and package.json "type" fields are overridden, and
|
|
866
|
-
* the file extension is ignored.
|
|
867
|
-
* This is useful if you cannot use .mts, .cts, .mjs, or .cjs file extensions;
|
|
868
|
-
* it achieves the same effect.
|
|
869
|
-
*
|
|
870
|
-
* Each key is a glob pattern following the same rules as tsconfig's "include" array.
|
|
871
|
-
* When multiple patterns match the same file, the last pattern takes precedence.
|
|
872
|
-
*
|
|
873
|
-
* `cjs` overrides matches files to compile and execute as CommonJS.
|
|
874
|
-
* `esm` overrides matches files to compile and execute as native ECMAScript modules.
|
|
875
|
-
* `package` overrides either of the above to default behavior, which obeys package.json "type" and
|
|
876
|
-
* tsconfig.json "module" options.
|
|
877
|
-
*/
|
|
878
|
-
export interface TsNodeModuleTypes {
|
|
1850
|
+
} | null;
|
|
879
1851
|
[k: string]: unknown;
|
|
880
1852
|
}
|
|
881
1853
|
export interface FilesDefinition {
|
|
882
1854
|
/**
|
|
883
1855
|
* If no 'files' or 'include' property is present in a tsconfig.json, the compiler defaults to including all files in the containing directory and subdirectories except those specified by 'exclude'. When a 'files' property is specified, only those files and those specified by 'include' are included.
|
|
884
1856
|
*/
|
|
885
|
-
files?: string[];
|
|
1857
|
+
files?: string[] | null;
|
|
886
1858
|
[k: string]: unknown;
|
|
887
1859
|
}
|
|
888
1860
|
export interface ExcludeDefinition {
|
|
889
1861
|
/**
|
|
890
1862
|
* Specifies a list of files to be excluded from compilation. The 'exclude' property only affects the files included via the 'include' property and not the 'files' property. Glob patterns require TypeScript version 2.0 or later.
|
|
891
1863
|
*/
|
|
892
|
-
exclude?: string[];
|
|
1864
|
+
exclude?: string[] | null;
|
|
893
1865
|
[k: string]: unknown;
|
|
894
1866
|
}
|
|
895
1867
|
export interface IncludeDefinition {
|
|
896
1868
|
/**
|
|
897
1869
|
* Specifies a list of glob patterns that match files to be included in compilation. If no 'files' or 'include' property is present in a tsconfig.json, the compiler defaults to including all files in the containing directory and subdirectories except those specified by 'exclude'. Requires TypeScript version 2.0 or later.
|
|
898
1870
|
*/
|
|
899
|
-
include?: string[];
|
|
1871
|
+
include?: string[] | null;
|
|
900
1872
|
[k: string]: unknown;
|
|
901
1873
|
}
|
|
902
1874
|
export interface ReferencesDefinition {
|