@schemastore/tsconfig 0.0.9 → 0.0.10
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/LICENSE +21 -0
- package/README.md +1 -1
- package/index.d.ts +775 -918
- package/package.json +3 -3
package/index.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,
|
|
@@ -9,504 +9,722 @@ export type JSONSchemaForTheTypeScriptCompilerSConfigurationFile = CompilerOptio
|
|
|
9
9
|
CompileOnSaveDefinition &
|
|
10
10
|
TypeAcquisitionDefinition &
|
|
11
11
|
ExtendsDefinition &
|
|
12
|
+
WatchOptionsDefinition &
|
|
13
|
+
BuildOptionsDefinition &
|
|
12
14
|
TsNodeDefinition &
|
|
13
15
|
(FilesDefinition | ExcludeDefinition | IncludeDefinition | ReferencesDefinition);
|
|
14
16
|
|
|
15
17
|
export interface CompilerOptionsDefinition {
|
|
18
|
+
compilerOptions?: CompilerOptions;
|
|
19
|
+
[k: string]: unknown;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Instructs the TypeScript compiler how to compile .ts files.
|
|
23
|
+
*/
|
|
24
|
+
export interface CompilerOptions {
|
|
16
25
|
/**
|
|
17
|
-
*
|
|
26
|
+
* No longer supported. In early versions, manually set the text encoding for reading files.
|
|
18
27
|
*/
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
| {
|
|
362
|
-
[k: string]: any;
|
|
363
|
-
}
|
|
364
|
-
| {
|
|
365
|
-
[k: string]: any;
|
|
366
|
-
}
|
|
367
|
-
| {
|
|
368
|
-
[k: string]: any;
|
|
369
|
-
}
|
|
370
|
-
| {
|
|
371
|
-
[k: string]: any;
|
|
372
|
-
}
|
|
373
|
-
| {
|
|
374
|
-
[k: string]: any;
|
|
375
|
-
}
|
|
376
|
-
| {
|
|
377
|
-
[k: string]: any;
|
|
378
|
-
}
|
|
379
|
-
| {
|
|
380
|
-
[k: string]: any;
|
|
381
|
-
}
|
|
382
|
-
| {
|
|
383
|
-
[k: string]: any;
|
|
384
|
-
}
|
|
385
|
-
| {
|
|
386
|
-
[k: string]: any;
|
|
387
|
-
}
|
|
388
|
-
| {
|
|
389
|
-
[k: string]: any;
|
|
390
|
-
}
|
|
391
|
-
)[];
|
|
392
|
-
/**
|
|
393
|
-
* Enable strict null checks. Requires TypeScript version 2.0 or later.
|
|
394
|
-
*/
|
|
395
|
-
strictNullChecks?: boolean;
|
|
396
|
-
/**
|
|
397
|
-
* The maximum dependency depth to search under node_modules and load JavaScript files. Only applicable with --allowJs.
|
|
398
|
-
*/
|
|
399
|
-
maxNodeModuleJsDepth?: number;
|
|
400
|
-
/**
|
|
401
|
-
* Import emit helpers (e.g. '__extends', '__rest', etc..) from tslib. Requires TypeScript version 2.1 or later.
|
|
402
|
-
*/
|
|
403
|
-
importHelpers?: boolean;
|
|
28
|
+
charset?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Enable constraints that allow a TypeScript project to be used with project references.
|
|
31
|
+
*/
|
|
32
|
+
composite?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Generate .d.ts files from TypeScript and JavaScript files in your project.
|
|
35
|
+
*/
|
|
36
|
+
declaration?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Specify the output directory for generated declaration files.
|
|
39
|
+
*/
|
|
40
|
+
declarationDir?: string | null;
|
|
41
|
+
/**
|
|
42
|
+
* Output compiler performance information after building.
|
|
43
|
+
*/
|
|
44
|
+
diagnostics?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Reduce the number of projects loaded automatically by TypeScript.
|
|
47
|
+
*/
|
|
48
|
+
disableReferencedProjectLoad?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Enforces using indexed accessors for keys declared using an indexed type
|
|
51
|
+
*/
|
|
52
|
+
noPropertyAccessFromIndexSignature?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.
|
|
55
|
+
*/
|
|
56
|
+
emitBOM?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Only output d.ts files and not JavaScript files.
|
|
59
|
+
*/
|
|
60
|
+
emitDeclarationOnly?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Differentiate between undefined and not present when type checking
|
|
63
|
+
*/
|
|
64
|
+
exactOptionalPropertyTypes?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Enable incremental compilation. Requires TypeScript version 3.4 or later.
|
|
67
|
+
*/
|
|
68
|
+
incremental?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Specify the folder for .tsbuildinfo incremental compilation files.
|
|
71
|
+
*/
|
|
72
|
+
tsBuildInfoFile?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Include sourcemap files inside the emitted JavaScript.
|
|
75
|
+
*/
|
|
76
|
+
inlineSourceMap?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Include source code in the sourcemaps inside the emitted JavaScript.
|
|
79
|
+
*/
|
|
80
|
+
inlineSources?: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Specify what JSX code is generated.
|
|
83
|
+
*/
|
|
84
|
+
jsx?: "preserve" | "react" | "react-jsx" | "react-jsxdev" | "react-native";
|
|
85
|
+
/**
|
|
86
|
+
* Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit.
|
|
87
|
+
*/
|
|
88
|
+
reactNamespace?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'
|
|
91
|
+
*/
|
|
92
|
+
jsxFactory?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'.
|
|
95
|
+
*/
|
|
96
|
+
jsxFragmentFactory?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx`.
|
|
99
|
+
*/
|
|
100
|
+
jsxImportSource?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Print all of the files read during the compilation.
|
|
103
|
+
*/
|
|
104
|
+
listFiles?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Specify the location where debugger should locate map files instead of generated locations.
|
|
107
|
+
*/
|
|
108
|
+
mapRoot?: string;
|
|
109
|
+
/**
|
|
110
|
+
* Specify what module code is generated.
|
|
111
|
+
*/
|
|
112
|
+
module?: (
|
|
113
|
+
| (
|
|
114
|
+
| "CommonJS"
|
|
115
|
+
| "AMD"
|
|
116
|
+
| "System"
|
|
117
|
+
| "UMD"
|
|
118
|
+
| "ES6"
|
|
119
|
+
| "ES2015"
|
|
120
|
+
| "ES2020"
|
|
121
|
+
| "ESNext"
|
|
122
|
+
| "None"
|
|
123
|
+
| "ES2022"
|
|
124
|
+
| "Node16"
|
|
125
|
+
| "NodeNext"
|
|
126
|
+
)
|
|
127
|
+
| {
|
|
128
|
+
[k: string]: unknown;
|
|
129
|
+
}
|
|
130
|
+
) &
|
|
131
|
+
string;
|
|
132
|
+
/**
|
|
133
|
+
* Specify how TypeScript looks up a file from a given module specifier.
|
|
134
|
+
*/
|
|
135
|
+
moduleResolution?: (
|
|
136
|
+
| ("Classic" | "Node" | "Node16" | "NodeNext")
|
|
137
|
+
| {
|
|
138
|
+
[k: string]: unknown;
|
|
139
|
+
}
|
|
140
|
+
) &
|
|
141
|
+
string;
|
|
142
|
+
/**
|
|
143
|
+
* Set the newline character for emitting files.
|
|
144
|
+
*/
|
|
145
|
+
newLine?: (
|
|
146
|
+
| ("crlf" | "lf")
|
|
147
|
+
| {
|
|
148
|
+
[k: string]: unknown;
|
|
149
|
+
}
|
|
150
|
+
) &
|
|
151
|
+
string;
|
|
152
|
+
/**
|
|
153
|
+
* Disable emitting file from a compilation.
|
|
154
|
+
*/
|
|
155
|
+
noEmit?: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Disable generating custom helper functions like `__extends` in compiled output.
|
|
158
|
+
*/
|
|
159
|
+
noEmitHelpers?: boolean;
|
|
160
|
+
/**
|
|
161
|
+
* Disable emitting files if any type checking errors are reported.
|
|
162
|
+
*/
|
|
163
|
+
noEmitOnError?: boolean;
|
|
164
|
+
/**
|
|
165
|
+
* Enable error reporting for expressions and declarations with an implied `any` type..
|
|
166
|
+
*/
|
|
167
|
+
noImplicitAny?: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* Enable error reporting when `this` is given the type `any`.
|
|
170
|
+
*/
|
|
171
|
+
noImplicitThis?: boolean;
|
|
172
|
+
/**
|
|
173
|
+
* Enable error reporting when a local variables aren't read.
|
|
174
|
+
*/
|
|
175
|
+
noUnusedLocals?: boolean;
|
|
176
|
+
/**
|
|
177
|
+
* Raise an error when a function parameter isn't read
|
|
178
|
+
*/
|
|
179
|
+
noUnusedParameters?: boolean;
|
|
180
|
+
/**
|
|
181
|
+
* Disable including any library files, including the default lib.d.ts.
|
|
182
|
+
*/
|
|
183
|
+
noLib?: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* Disallow `import`s, `require`s or `<reference>`s from expanding the number of files TypeScript should add to a project.
|
|
186
|
+
*/
|
|
187
|
+
noResolve?: boolean;
|
|
188
|
+
/**
|
|
189
|
+
* Disable strict checking of generic signatures in function types.
|
|
190
|
+
*/
|
|
191
|
+
noStrictGenericChecks?: boolean;
|
|
192
|
+
/**
|
|
193
|
+
* Skip type checking .d.ts files that are included with TypeScript.
|
|
194
|
+
*/
|
|
195
|
+
skipDefaultLibCheck?: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* Skip type checking all .d.ts files.
|
|
198
|
+
*/
|
|
199
|
+
skipLibCheck?: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* 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
|
+
*/
|
|
203
|
+
outFile?: string;
|
|
204
|
+
/**
|
|
205
|
+
* Specify an output folder for all emitted files.
|
|
206
|
+
*/
|
|
207
|
+
outDir?: string;
|
|
208
|
+
/**
|
|
209
|
+
* Disable erasing `const enum` declarations in generated code.
|
|
210
|
+
*/
|
|
211
|
+
preserveConstEnums?: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* Disable resolving symlinks to their realpath. This correlates to the same flag in node.
|
|
214
|
+
*/
|
|
215
|
+
preserveSymlinks?: boolean;
|
|
216
|
+
/**
|
|
217
|
+
* Preserve unused imported values in the JavaScript output that would otherwise be removed
|
|
218
|
+
*/
|
|
219
|
+
preserveValueImports?: boolean;
|
|
220
|
+
/**
|
|
221
|
+
* Disable wiping the console in watch mode
|
|
222
|
+
*/
|
|
223
|
+
preserveWatchOutput?: boolean;
|
|
224
|
+
/**
|
|
225
|
+
* Enable color and formatting in output to make compiler errors easier to read
|
|
226
|
+
*/
|
|
227
|
+
pretty?: boolean;
|
|
228
|
+
/**
|
|
229
|
+
* Disable emitting comments.
|
|
230
|
+
*/
|
|
231
|
+
removeComments?: boolean;
|
|
232
|
+
/**
|
|
233
|
+
* Specify the root folder within your source files.
|
|
234
|
+
*/
|
|
235
|
+
rootDir?: string;
|
|
236
|
+
/**
|
|
237
|
+
* Ensure that each file can be safely transpiled without relying on other imports.
|
|
238
|
+
*/
|
|
239
|
+
isolatedModules?: boolean;
|
|
240
|
+
/**
|
|
241
|
+
* Create source map files for emitted JavaScript files.
|
|
242
|
+
*/
|
|
243
|
+
sourceMap?: boolean;
|
|
244
|
+
/**
|
|
245
|
+
* Specify the root path for debuggers to find the reference source code.
|
|
246
|
+
*/
|
|
247
|
+
sourceRoot?: string;
|
|
248
|
+
/**
|
|
249
|
+
* Disable reporting of excess property errors during the creation of object literals.
|
|
250
|
+
*/
|
|
251
|
+
suppressExcessPropertyErrors?: boolean;
|
|
252
|
+
/**
|
|
253
|
+
* Suppress `noImplicitAny` errors when indexing objects that lack index signatures.
|
|
254
|
+
*/
|
|
255
|
+
suppressImplicitAnyIndexErrors?: boolean;
|
|
256
|
+
/**
|
|
257
|
+
* Disable emitting declarations that have `@internal` in their JSDoc comments.
|
|
258
|
+
*/
|
|
259
|
+
stripInternal?: boolean;
|
|
260
|
+
/**
|
|
261
|
+
* Set the JavaScript language version for emitted JavaScript and include compatible library declarations.
|
|
262
|
+
*/
|
|
263
|
+
target?: (
|
|
264
|
+
| (
|
|
265
|
+
| "ES3"
|
|
266
|
+
| "ES5"
|
|
267
|
+
| "ES6"
|
|
268
|
+
| "ES2015"
|
|
269
|
+
| "ES2016"
|
|
270
|
+
| "ES2017"
|
|
271
|
+
| "ES2018"
|
|
272
|
+
| "ES2019"
|
|
273
|
+
| "ES2020"
|
|
274
|
+
| "ES2021"
|
|
275
|
+
| "ES2022"
|
|
276
|
+
| "ESNext"
|
|
277
|
+
)
|
|
278
|
+
| {
|
|
279
|
+
[k: string]: unknown;
|
|
280
|
+
}
|
|
281
|
+
) &
|
|
282
|
+
string;
|
|
283
|
+
/**
|
|
284
|
+
* Default catch clause variables as `unknown` instead of `any`.
|
|
285
|
+
*/
|
|
286
|
+
useUnknownInCatchVariables?: boolean;
|
|
287
|
+
/**
|
|
288
|
+
* Watch input files.
|
|
289
|
+
*/
|
|
290
|
+
watch?: boolean;
|
|
291
|
+
/**
|
|
292
|
+
* 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
|
+
*/
|
|
294
|
+
fallbackPolling?:
|
|
295
|
+
| "fixedPollingInterval"
|
|
296
|
+
| "priorityPollingInterval"
|
|
297
|
+
| "dynamicPriorityPolling"
|
|
298
|
+
| "fixedInterval"
|
|
299
|
+
| "priorityInterval"
|
|
300
|
+
| "dynamicPriority"
|
|
301
|
+
| "fixedChunkSize";
|
|
302
|
+
/**
|
|
303
|
+
* Specify the strategy for watching directories under systems that lack recursive file-watching functionality. Requires TypeScript version 3.8 or later.
|
|
304
|
+
*/
|
|
305
|
+
watchDirectory?: "useFsEvents" | "fixedPollingInterval" | "dynamicPriorityPolling" | "fixedChunkSizePolling";
|
|
306
|
+
/**
|
|
307
|
+
* Specify the strategy for watching individual files. Requires TypeScript version 3.8 or later.
|
|
308
|
+
*/
|
|
309
|
+
watchFile?:
|
|
310
|
+
| "fixedPollingInterval"
|
|
311
|
+
| "priorityPollingInterval"
|
|
312
|
+
| "dynamicPriorityPolling"
|
|
313
|
+
| "useFsEvents"
|
|
314
|
+
| "useFsEventsOnParentDirectory"
|
|
315
|
+
| "fixedChunkSizePolling";
|
|
316
|
+
/**
|
|
317
|
+
* Enable experimental support for TC39 stage 2 draft decorators.
|
|
318
|
+
*/
|
|
319
|
+
experimentalDecorators?: boolean;
|
|
320
|
+
/**
|
|
321
|
+
* Emit design-type metadata for decorated declarations in source files.
|
|
322
|
+
*/
|
|
323
|
+
emitDecoratorMetadata?: boolean;
|
|
324
|
+
/**
|
|
325
|
+
* Disable error reporting for unused labels.
|
|
326
|
+
*/
|
|
327
|
+
allowUnusedLabels?: boolean;
|
|
328
|
+
/**
|
|
329
|
+
* Enable error reporting for codepaths that do not explicitly return in a function.
|
|
330
|
+
*/
|
|
331
|
+
noImplicitReturns?: boolean;
|
|
332
|
+
/**
|
|
333
|
+
* Add `undefined` to a type when accessed using an index.
|
|
334
|
+
*/
|
|
335
|
+
noUncheckedIndexedAccess?: boolean;
|
|
336
|
+
/**
|
|
337
|
+
* Enable error reporting for fallthrough cases in switch statements.
|
|
338
|
+
*/
|
|
339
|
+
noFallthroughCasesInSwitch?: boolean;
|
|
340
|
+
/**
|
|
341
|
+
* Ensure overriding members in derived classes are marked with an override modifier.
|
|
342
|
+
*/
|
|
343
|
+
noImplicitOverride?: boolean;
|
|
344
|
+
/**
|
|
345
|
+
* Disable error reporting for unreachable code.
|
|
346
|
+
*/
|
|
347
|
+
allowUnreachableCode?: boolean;
|
|
348
|
+
/**
|
|
349
|
+
* Ensure that casing is correct in imports.
|
|
350
|
+
*/
|
|
351
|
+
forceConsistentCasingInFileNames?: boolean;
|
|
352
|
+
/**
|
|
353
|
+
* Emit a v8 CPU profile of the compiler run for debugging.
|
|
354
|
+
*/
|
|
355
|
+
generateCpuProfile?: string;
|
|
356
|
+
/**
|
|
357
|
+
* Specify the base directory to resolve non-relative module names.
|
|
358
|
+
*/
|
|
359
|
+
baseUrl?: string;
|
|
360
|
+
/**
|
|
361
|
+
* Specify a set of entries that re-map imports to additional lookup locations.
|
|
362
|
+
*/
|
|
363
|
+
paths?: {
|
|
364
|
+
[k: string]: string[];
|
|
365
|
+
};
|
|
366
|
+
/**
|
|
367
|
+
* Specify a list of language service plugins to include.
|
|
368
|
+
*/
|
|
369
|
+
plugins?: {
|
|
404
370
|
/**
|
|
405
|
-
*
|
|
371
|
+
* Plugin name.
|
|
406
372
|
*/
|
|
407
|
-
|
|
373
|
+
name?: string;
|
|
374
|
+
[k: string]: unknown;
|
|
375
|
+
}[];
|
|
376
|
+
/**
|
|
377
|
+
* Allow multiple folders to be treated as one when resolving modules.
|
|
378
|
+
*/
|
|
379
|
+
rootDirs?: string[];
|
|
380
|
+
/**
|
|
381
|
+
* Specify multiple folders that act like `./node_modules/@types`.
|
|
382
|
+
*/
|
|
383
|
+
typeRoots?: string[];
|
|
384
|
+
/**
|
|
385
|
+
* Specify type package names to be included without being referenced in a source file.
|
|
386
|
+
*/
|
|
387
|
+
types?: string[];
|
|
388
|
+
/**
|
|
389
|
+
* Enable tracing of the name resolution process. Requires TypeScript version 2.0 or later.
|
|
390
|
+
*/
|
|
391
|
+
traceResolution?: boolean;
|
|
392
|
+
/**
|
|
393
|
+
* Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files.
|
|
394
|
+
*/
|
|
395
|
+
allowJs?: boolean;
|
|
396
|
+
/**
|
|
397
|
+
* Disable truncating types in error messages.
|
|
398
|
+
*/
|
|
399
|
+
noErrorTruncation?: boolean;
|
|
400
|
+
/**
|
|
401
|
+
* Allow 'import x from y' when a module doesn't have a default export.
|
|
402
|
+
*/
|
|
403
|
+
allowSyntheticDefaultImports?: boolean;
|
|
404
|
+
/**
|
|
405
|
+
* Disable adding 'use strict' directives in emitted JavaScript files.
|
|
406
|
+
*/
|
|
407
|
+
noImplicitUseStrict?: boolean;
|
|
408
|
+
/**
|
|
409
|
+
* Print the names of emitted files after a compilation.
|
|
410
|
+
*/
|
|
411
|
+
listEmittedFiles?: boolean;
|
|
412
|
+
/**
|
|
413
|
+
* Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server.
|
|
414
|
+
*/
|
|
415
|
+
disableSizeLimit?: boolean;
|
|
416
|
+
/**
|
|
417
|
+
* Specify a set of bundled library declaration files that describe the target runtime environment.
|
|
418
|
+
*/
|
|
419
|
+
lib?: ((
|
|
420
|
+
| (
|
|
421
|
+
| "ES5"
|
|
422
|
+
| "ES6"
|
|
423
|
+
| "ES2015"
|
|
424
|
+
| "ES2015.Collection"
|
|
425
|
+
| "ES2015.Core"
|
|
426
|
+
| "ES2015.Generator"
|
|
427
|
+
| "ES2015.Iterable"
|
|
428
|
+
| "ES2015.Promise"
|
|
429
|
+
| "ES2015.Proxy"
|
|
430
|
+
| "ES2015.Reflect"
|
|
431
|
+
| "ES2015.Symbol.WellKnown"
|
|
432
|
+
| "ES2015.Symbol"
|
|
433
|
+
| "ES2016"
|
|
434
|
+
| "ES2016.Array.Include"
|
|
435
|
+
| "ES2017"
|
|
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"
|
|
487
|
+
)
|
|
488
|
+
| {
|
|
489
|
+
[k: string]: unknown;
|
|
490
|
+
}
|
|
491
|
+
| {
|
|
492
|
+
[k: string]: unknown;
|
|
493
|
+
}
|
|
494
|
+
| {
|
|
495
|
+
[k: string]: unknown;
|
|
496
|
+
}
|
|
497
|
+
| {
|
|
498
|
+
[k: string]: unknown;
|
|
499
|
+
}
|
|
500
|
+
| {
|
|
501
|
+
[k: string]: unknown;
|
|
502
|
+
}
|
|
503
|
+
| {
|
|
504
|
+
[k: string]: unknown;
|
|
505
|
+
}
|
|
506
|
+
| {
|
|
507
|
+
[k: string]: unknown;
|
|
508
|
+
}
|
|
509
|
+
| {
|
|
510
|
+
[k: string]: unknown;
|
|
511
|
+
}
|
|
512
|
+
| {
|
|
513
|
+
[k: string]: unknown;
|
|
514
|
+
}
|
|
515
|
+
| {
|
|
516
|
+
[k: string]: unknown;
|
|
517
|
+
}
|
|
518
|
+
| {
|
|
519
|
+
[k: string]: unknown;
|
|
520
|
+
}
|
|
521
|
+
| {
|
|
522
|
+
[k: string]: unknown;
|
|
523
|
+
}
|
|
524
|
+
| {
|
|
525
|
+
[k: string]: unknown;
|
|
526
|
+
}
|
|
527
|
+
) &
|
|
528
|
+
string)[];
|
|
529
|
+
/**
|
|
530
|
+
* Specify how TypeScript determine a file as module.
|
|
531
|
+
*/
|
|
532
|
+
moduleDetection?: "auto" | "legacy" | "force";
|
|
533
|
+
/**
|
|
534
|
+
* When type checking, take into account `null` and `undefined`.
|
|
535
|
+
*/
|
|
536
|
+
strictNullChecks?: boolean;
|
|
537
|
+
/**
|
|
538
|
+
* Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`.
|
|
539
|
+
*/
|
|
540
|
+
maxNodeModuleJsDepth?: number;
|
|
541
|
+
/**
|
|
542
|
+
* Allow importing helper functions from tslib once per project, instead of including them per-file.
|
|
543
|
+
*/
|
|
544
|
+
importHelpers?: boolean;
|
|
545
|
+
/**
|
|
546
|
+
* Specify emit/checking behavior for imports that are only used for types.
|
|
547
|
+
*/
|
|
548
|
+
importsNotUsedAsValues?: "remove" | "preserve" | "error";
|
|
549
|
+
/**
|
|
550
|
+
* Ensure 'use strict' is always emitted.
|
|
551
|
+
*/
|
|
552
|
+
alwaysStrict?: boolean;
|
|
553
|
+
/**
|
|
554
|
+
* Enable all strict type checking options.
|
|
555
|
+
*/
|
|
556
|
+
strict?: boolean;
|
|
557
|
+
/**
|
|
558
|
+
* Check that the arguments for `bind`, `call`, and `apply` methods match the original function.
|
|
559
|
+
*/
|
|
560
|
+
strictBindCallApply?: boolean;
|
|
561
|
+
/**
|
|
562
|
+
* Emit more compliant, but verbose and less performant JavaScript for iteration.
|
|
563
|
+
*/
|
|
564
|
+
downlevelIteration?: boolean;
|
|
565
|
+
/**
|
|
566
|
+
* Enable error reporting in type-checked JavaScript files.
|
|
567
|
+
*/
|
|
568
|
+
checkJs?: boolean;
|
|
569
|
+
/**
|
|
570
|
+
* When assigning functions, check to ensure parameters and the return values are subtype-compatible.
|
|
571
|
+
*/
|
|
572
|
+
strictFunctionTypes?: boolean;
|
|
573
|
+
/**
|
|
574
|
+
* Check for class properties that are declared but not set in the constructor.
|
|
575
|
+
*/
|
|
576
|
+
strictPropertyInitialization?: boolean;
|
|
577
|
+
/**
|
|
578
|
+
* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility.
|
|
579
|
+
*/
|
|
580
|
+
esModuleInterop?: boolean;
|
|
581
|
+
/**
|
|
582
|
+
* Allow accessing UMD globals from modules.
|
|
583
|
+
*/
|
|
584
|
+
allowUmdGlobalAccess?: boolean;
|
|
585
|
+
/**
|
|
586
|
+
* Make keyof only return strings instead of string, numbers or symbols. Legacy option.
|
|
587
|
+
*/
|
|
588
|
+
keyofStringsOnly?: boolean;
|
|
589
|
+
/**
|
|
590
|
+
* Emit ECMAScript-standard-compliant class fields.
|
|
591
|
+
*/
|
|
592
|
+
useDefineForClassFields?: boolean;
|
|
593
|
+
/**
|
|
594
|
+
* Create sourcemaps for d.ts files.
|
|
595
|
+
*/
|
|
596
|
+
declarationMap?: boolean;
|
|
597
|
+
/**
|
|
598
|
+
* Enable importing .json files
|
|
599
|
+
*/
|
|
600
|
+
resolveJsonModule?: boolean;
|
|
601
|
+
/**
|
|
602
|
+
* Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it. Requires TypeScript version 3.8 or later.
|
|
603
|
+
*/
|
|
604
|
+
assumeChangesOnlyAffectDirectDependencies?: boolean;
|
|
605
|
+
/**
|
|
606
|
+
* Output more detailed compiler performance information after building.
|
|
607
|
+
*/
|
|
608
|
+
extendedDiagnostics?: boolean;
|
|
609
|
+
/**
|
|
610
|
+
* Print names of files that are part of the compilation and then stop processing.
|
|
611
|
+
*/
|
|
612
|
+
listFilesOnly?: boolean;
|
|
613
|
+
/**
|
|
614
|
+
* Disable preferring source files instead of declaration files when referencing composite projects
|
|
615
|
+
*/
|
|
616
|
+
disableSourceOfProjectReferenceRedirect?: boolean;
|
|
617
|
+
/**
|
|
618
|
+
* Opt a project out of multi-project reference checking when editing.
|
|
619
|
+
*/
|
|
620
|
+
disableSolutionSearching?: boolean;
|
|
621
|
+
[k: string]: unknown;
|
|
622
|
+
}
|
|
623
|
+
export interface CompileOnSaveDefinition {
|
|
624
|
+
/**
|
|
625
|
+
* Enable Compile-on-Save for this project.
|
|
626
|
+
*/
|
|
627
|
+
compileOnSave?: boolean;
|
|
628
|
+
[k: string]: unknown;
|
|
629
|
+
}
|
|
630
|
+
export interface TypeAcquisitionDefinition {
|
|
631
|
+
/**
|
|
632
|
+
* Auto type (.d.ts) acquisition options for this project. Requires TypeScript version 2.1 or later.
|
|
633
|
+
*/
|
|
634
|
+
typeAcquisition?: {
|
|
408
635
|
/**
|
|
409
|
-
*
|
|
636
|
+
* Enable auto type acquisition
|
|
410
637
|
*/
|
|
411
|
-
|
|
638
|
+
enable?: boolean;
|
|
412
639
|
/**
|
|
413
|
-
*
|
|
640
|
+
* Specifies a list of type declarations to be included in auto type acquisition. Ex. ["jquery", "lodash"]
|
|
414
641
|
*/
|
|
415
|
-
|
|
642
|
+
include?: string[];
|
|
416
643
|
/**
|
|
417
|
-
*
|
|
644
|
+
* Specifies a list of type declarations to be excluded from auto type acquisition. Ex. ["jquery", "lodash"]
|
|
418
645
|
*/
|
|
419
|
-
|
|
646
|
+
exclude?: string[];
|
|
647
|
+
[k: string]: unknown;
|
|
648
|
+
};
|
|
649
|
+
[k: string]: unknown;
|
|
650
|
+
}
|
|
651
|
+
export interface ExtendsDefinition {
|
|
652
|
+
/**
|
|
653
|
+
* Path to base configuration file to inherit from. Requires TypeScript version 2.1 or later.
|
|
654
|
+
*/
|
|
655
|
+
extends?: string;
|
|
656
|
+
[k: string]: unknown;
|
|
657
|
+
}
|
|
658
|
+
export interface WatchOptionsDefinition {
|
|
659
|
+
/**
|
|
660
|
+
* Settings for the watch mode in TypeScript.
|
|
661
|
+
*/
|
|
662
|
+
watchOptions?: {
|
|
420
663
|
/**
|
|
421
|
-
*
|
|
664
|
+
* ~
|
|
422
665
|
*/
|
|
423
|
-
|
|
666
|
+
force?: string;
|
|
424
667
|
/**
|
|
425
|
-
*
|
|
668
|
+
* Specify how the TypeScript watch mode works.
|
|
426
669
|
*/
|
|
427
|
-
|
|
670
|
+
watchFile?: string;
|
|
428
671
|
/**
|
|
429
|
-
*
|
|
672
|
+
* Specify how directories are watched on systems that lack recursive file-watching functionality.
|
|
430
673
|
*/
|
|
431
|
-
|
|
674
|
+
watchDirectory?: string;
|
|
432
675
|
/**
|
|
433
|
-
*
|
|
676
|
+
* Specify what approach the watcher should use if the system runs out of native file watchers.
|
|
434
677
|
*/
|
|
435
|
-
|
|
678
|
+
fallbackPolling?: string;
|
|
436
679
|
/**
|
|
437
|
-
*
|
|
680
|
+
* Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively.
|
|
438
681
|
*/
|
|
439
|
-
|
|
682
|
+
synchronousWatchDirectory?: boolean;
|
|
440
683
|
/**
|
|
441
|
-
*
|
|
684
|
+
* Remove a list of files from the watch mode's processing.
|
|
442
685
|
*/
|
|
443
|
-
|
|
686
|
+
excludeFiles?: string[];
|
|
444
687
|
/**
|
|
445
|
-
*
|
|
688
|
+
* Remove a list of directories from the watch process.
|
|
446
689
|
*/
|
|
447
|
-
|
|
690
|
+
excludeDirectories?: string[];
|
|
691
|
+
[k: string]: unknown;
|
|
692
|
+
};
|
|
693
|
+
[k: string]: unknown;
|
|
694
|
+
}
|
|
695
|
+
export interface BuildOptionsDefinition {
|
|
696
|
+
buildOptions?: {
|
|
448
697
|
/**
|
|
449
|
-
*
|
|
698
|
+
* ~
|
|
450
699
|
*/
|
|
451
|
-
|
|
700
|
+
dry?: boolean;
|
|
452
701
|
/**
|
|
453
|
-
*
|
|
702
|
+
* Build all projects, including those that appear to be up to date
|
|
454
703
|
*/
|
|
455
|
-
|
|
704
|
+
force?: boolean;
|
|
456
705
|
/**
|
|
457
|
-
*
|
|
706
|
+
* Enable verbose logging
|
|
458
707
|
*/
|
|
459
|
-
|
|
708
|
+
verbose?: boolean;
|
|
460
709
|
/**
|
|
461
|
-
*
|
|
710
|
+
* Save .tsbuildinfo files to allow for incremental compilation of projects.
|
|
462
711
|
*/
|
|
463
|
-
|
|
712
|
+
incremental?: boolean;
|
|
464
713
|
/**
|
|
465
|
-
* Have recompiles in
|
|
714
|
+
* Have recompiles in projects that use `incremental` and `watch` mode assume that changes within a file will only affect files directly depending on it.
|
|
466
715
|
*/
|
|
467
716
|
assumeChangesOnlyAffectDirectDependencies?: boolean;
|
|
468
|
-
[k: string]: any;
|
|
469
|
-
};
|
|
470
|
-
[k: string]: any;
|
|
471
|
-
}
|
|
472
|
-
export interface CompileOnSaveDefinition {
|
|
473
|
-
/**
|
|
474
|
-
* Enable Compile-on-Save for this project.
|
|
475
|
-
*/
|
|
476
|
-
compileOnSave?: boolean;
|
|
477
|
-
[k: string]: any;
|
|
478
|
-
}
|
|
479
|
-
export interface TypeAcquisitionDefinition {
|
|
480
|
-
/**
|
|
481
|
-
* Auto type (.d.ts) acquisition options for this project. Requires TypeScript version 2.1 or later.
|
|
482
|
-
*/
|
|
483
|
-
typeAcquisition?: {
|
|
484
|
-
/**
|
|
485
|
-
* Enable auto type acquisition
|
|
486
|
-
*/
|
|
487
|
-
enable?: boolean;
|
|
488
|
-
/**
|
|
489
|
-
* Specifies a list of type declarations to be included in auto type acquisition. Ex. ["jquery", "lodash"]
|
|
490
|
-
*/
|
|
491
|
-
include?: string[];
|
|
492
717
|
/**
|
|
493
|
-
*
|
|
718
|
+
* Log paths used during the `moduleResolution` process.
|
|
494
719
|
*/
|
|
495
|
-
|
|
496
|
-
[k: string]:
|
|
720
|
+
traceResolution?: boolean;
|
|
721
|
+
[k: string]: unknown;
|
|
497
722
|
};
|
|
498
|
-
[k: string]:
|
|
499
|
-
}
|
|
500
|
-
export interface ExtendsDefinition {
|
|
501
|
-
/**
|
|
502
|
-
* Path to base configuration file to inherit from. Requires TypeScript version 2.1 or later.
|
|
503
|
-
*/
|
|
504
|
-
extends?: string;
|
|
505
|
-
[k: string]: any;
|
|
723
|
+
[k: string]: unknown;
|
|
506
724
|
}
|
|
507
725
|
export interface TsNodeDefinition {
|
|
508
726
|
/**
|
|
509
|
-
* ts-node options. See also: https://
|
|
727
|
+
* ts-node options. See also: https://typestrong.org/ts-node/docs/configuration
|
|
510
728
|
*
|
|
511
729
|
* ts-node offers TypeScript execution and REPL for node.js, with source map support.
|
|
512
730
|
*/
|
|
@@ -516,473 +734,62 @@ export interface TsNodeDefinition {
|
|
|
516
734
|
*/
|
|
517
735
|
compiler?: string;
|
|
518
736
|
/**
|
|
519
|
-
* Use TypeScript's compiler host API.
|
|
737
|
+
* Use TypeScript's compiler host API instead of the language service API.
|
|
520
738
|
*/
|
|
521
739
|
compilerHost?: boolean;
|
|
522
740
|
/**
|
|
523
|
-
* JSON object to merge with
|
|
741
|
+
* JSON object to merge with TypeScript `compilerOptions`.
|
|
524
742
|
*/
|
|
525
|
-
compilerOptions?:
|
|
526
|
-
/**
|
|
527
|
-
* The character set of the input files.
|
|
528
|
-
*/
|
|
529
|
-
charset?: string;
|
|
530
|
-
/**
|
|
531
|
-
* Enables building for project references.
|
|
532
|
-
*/
|
|
533
|
-
composite?: boolean;
|
|
534
|
-
/**
|
|
535
|
-
* Generates corresponding d.ts files.
|
|
536
|
-
*/
|
|
537
|
-
declaration?: boolean;
|
|
538
|
-
/**
|
|
539
|
-
* Specify output directory for generated declaration files. Requires TypeScript version 2.0 or later.
|
|
540
|
-
*/
|
|
541
|
-
declarationDir?: string;
|
|
542
|
-
/**
|
|
543
|
-
* Show diagnostic information.
|
|
544
|
-
*/
|
|
545
|
-
diagnostics?: boolean;
|
|
546
|
-
/**
|
|
547
|
-
* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.
|
|
548
|
-
*/
|
|
549
|
-
emitBOM?: boolean;
|
|
550
|
-
/**
|
|
551
|
-
* Only emit '.d.ts' declaration files.
|
|
552
|
-
*/
|
|
553
|
-
emitDeclarationOnly?: boolean;
|
|
554
|
-
/**
|
|
555
|
-
* Enable incremental compilation.
|
|
556
|
-
*/
|
|
557
|
-
incremental?: boolean;
|
|
558
|
-
/**
|
|
559
|
-
* Specify file to store incremental compilation information.
|
|
560
|
-
*/
|
|
561
|
-
tsBuildInfoFile?: string;
|
|
562
|
-
/**
|
|
563
|
-
* Emit a single file with source maps instead of having a separate file.
|
|
564
|
-
*/
|
|
565
|
-
inlineSourceMap?: boolean;
|
|
566
|
-
/**
|
|
567
|
-
* Emit the source alongside the sourcemaps within a single file; requires --inlineSourceMap to be set.
|
|
568
|
-
*/
|
|
569
|
-
inlineSources?: boolean;
|
|
570
|
-
/**
|
|
571
|
-
* Specify JSX code generation: 'preserve', 'react', or 'react-native'.
|
|
572
|
-
*/
|
|
573
|
-
jsx?: "preserve" | "react" | "react-native";
|
|
574
|
-
/**
|
|
575
|
-
* Specifies the object invoked for createElement and __spread when targeting 'react' JSX emit.
|
|
576
|
-
*/
|
|
577
|
-
reactNamespace?: string;
|
|
578
|
-
/**
|
|
579
|
-
* Print names of files part of the compilation.
|
|
580
|
-
*/
|
|
581
|
-
listFiles?: boolean;
|
|
582
|
-
/**
|
|
583
|
-
* Specifies the location where debugger should locate map files instead of generated locations
|
|
584
|
-
*/
|
|
585
|
-
mapRoot?: string;
|
|
586
|
-
/**
|
|
587
|
-
* Specify module code generation: 'None', 'CommonJS', 'AMD', 'System', 'UMD', 'ES6', 'ES2015', 'ES2020' or 'ESNext'. Only 'AMD' and 'System' can be used in conjunction with --outFile.
|
|
588
|
-
*/
|
|
589
|
-
module?:
|
|
590
|
-
| ("CommonJS" | "AMD" | "System" | "UMD" | "ES6" | "ES2015" | "ES2020" | "ESNext" | "None")
|
|
591
|
-
| {
|
|
592
|
-
[k: string]: any;
|
|
593
|
-
};
|
|
594
|
-
/**
|
|
595
|
-
* Specifies the end of line sequence to be used when emitting files: 'crlf' (Windows) or 'lf' (Unix).
|
|
596
|
-
*/
|
|
597
|
-
newLine?:
|
|
598
|
-
| ("crlf" | "lf")
|
|
599
|
-
| {
|
|
600
|
-
[k: string]: any;
|
|
601
|
-
};
|
|
602
|
-
/**
|
|
603
|
-
* Do not emit output.
|
|
604
|
-
*/
|
|
605
|
-
noEmit?: boolean;
|
|
606
|
-
/**
|
|
607
|
-
* Do not generate custom helper functions like __extends in compiled output.
|
|
608
|
-
*/
|
|
609
|
-
noEmitHelpers?: boolean;
|
|
610
|
-
/**
|
|
611
|
-
* Do not emit outputs if any type checking errors were reported.
|
|
612
|
-
*/
|
|
613
|
-
noEmitOnError?: boolean;
|
|
614
|
-
/**
|
|
615
|
-
* Warn on expressions and declarations with an implied 'any' type.
|
|
616
|
-
*/
|
|
617
|
-
noImplicitAny?: boolean;
|
|
618
|
-
/**
|
|
619
|
-
* Raise error on 'this' expressions with an implied any type.
|
|
620
|
-
*/
|
|
621
|
-
noImplicitThis?: boolean;
|
|
622
|
-
/**
|
|
623
|
-
* Report errors on unused locals. Requires TypeScript version 2.0 or later.
|
|
624
|
-
*/
|
|
625
|
-
noUnusedLocals?: boolean;
|
|
626
|
-
/**
|
|
627
|
-
* Report errors on unused parameters. Requires TypeScript version 2.0 or later.
|
|
628
|
-
*/
|
|
629
|
-
noUnusedParameters?: boolean;
|
|
630
|
-
/**
|
|
631
|
-
* Do not include the default library file (lib.d.ts).
|
|
632
|
-
*/
|
|
633
|
-
noLib?: boolean;
|
|
634
|
-
/**
|
|
635
|
-
* Do not add triple-slash references or module import targets to the list of compiled files.
|
|
636
|
-
*/
|
|
637
|
-
noResolve?: boolean;
|
|
638
|
-
/**
|
|
639
|
-
* Disable strict checking of generic signatures in function types.
|
|
640
|
-
*/
|
|
641
|
-
noStrictGenericChecks?: boolean;
|
|
642
|
-
skipDefaultLibCheck?: boolean;
|
|
643
|
-
/**
|
|
644
|
-
* Skip type checking of declaration files. Requires TypeScript version 2.0 or later.
|
|
645
|
-
*/
|
|
646
|
-
skipLibCheck?: boolean;
|
|
647
|
-
/**
|
|
648
|
-
* Concatenate and emit output to single file.
|
|
649
|
-
*/
|
|
650
|
-
outFile?: string;
|
|
651
|
-
/**
|
|
652
|
-
* Redirect output structure to the directory.
|
|
653
|
-
*/
|
|
654
|
-
outDir?: string;
|
|
655
|
-
/**
|
|
656
|
-
* Do not erase const enum declarations in generated code.
|
|
657
|
-
*/
|
|
658
|
-
preserveConstEnums?: boolean;
|
|
659
|
-
/**
|
|
660
|
-
* Do not resolve symlinks to their real path; treat a symlinked file like a real one.
|
|
661
|
-
*/
|
|
662
|
-
preserveSymlinks?: boolean;
|
|
663
|
-
/**
|
|
664
|
-
* Keep outdated console output in watch mode instead of clearing the screen.
|
|
665
|
-
*/
|
|
666
|
-
preserveWatchOutput?: boolean;
|
|
667
|
-
/**
|
|
668
|
-
* Stylize errors and messages using color and context (experimental).
|
|
669
|
-
*/
|
|
670
|
-
pretty?: boolean;
|
|
671
|
-
/**
|
|
672
|
-
* Do not emit comments to output.
|
|
673
|
-
*/
|
|
674
|
-
removeComments?: boolean;
|
|
675
|
-
/**
|
|
676
|
-
* Specifies the root directory of input files. Use to control the output directory structure with --outDir.
|
|
677
|
-
*/
|
|
678
|
-
rootDir?: string;
|
|
679
|
-
/**
|
|
680
|
-
* Unconditionally emit imports for unresolved files.
|
|
681
|
-
*/
|
|
682
|
-
isolatedModules?: boolean;
|
|
683
|
-
/**
|
|
684
|
-
* Generates corresponding '.map' file.
|
|
685
|
-
*/
|
|
686
|
-
sourceMap?: boolean;
|
|
687
|
-
/**
|
|
688
|
-
* Specifies the location where debugger should locate TypeScript files instead of source locations.
|
|
689
|
-
*/
|
|
690
|
-
sourceRoot?: string;
|
|
691
|
-
/**
|
|
692
|
-
* Suppress excess property checks for object literals.
|
|
693
|
-
*/
|
|
694
|
-
suppressExcessPropertyErrors?: boolean;
|
|
695
|
-
/**
|
|
696
|
-
* Suppress noImplicitAny errors for indexing objects lacking index signatures.
|
|
697
|
-
*/
|
|
698
|
-
suppressImplicitAnyIndexErrors?: boolean;
|
|
699
|
-
/**
|
|
700
|
-
* Do not emit declarations for code that has an '@internal' annotation.
|
|
701
|
-
*/
|
|
702
|
-
stripInternal?: boolean;
|
|
703
|
-
/**
|
|
704
|
-
* Specify ECMAScript target version: 'ES3', 'ES5', 'ES6'/'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', 'ESNext'
|
|
705
|
-
*/
|
|
706
|
-
target?:
|
|
707
|
-
| ("ES3" | "ES5" | "ES6" | "ES2015" | "ES2016" | "ES2017" | "ES2018" | "ES2019" | "ES2020" | "ESNext")
|
|
708
|
-
| {
|
|
709
|
-
[k: string]: any;
|
|
710
|
-
};
|
|
711
|
-
/**
|
|
712
|
-
* Watch input files.
|
|
713
|
-
*/
|
|
714
|
-
watch?: boolean;
|
|
715
|
-
/**
|
|
716
|
-
* Enables experimental support for ES7 decorators.
|
|
717
|
-
*/
|
|
718
|
-
experimentalDecorators?: boolean;
|
|
719
|
-
/**
|
|
720
|
-
* Emit design-type metadata for decorated declarations in source.
|
|
721
|
-
*/
|
|
722
|
-
emitDecoratorMetadata?: boolean;
|
|
723
|
-
/**
|
|
724
|
-
* Specifies module resolution strategy: 'node' (Node) or 'classic' (TypeScript pre 1.6) .
|
|
725
|
-
*/
|
|
726
|
-
moduleResolution?:
|
|
727
|
-
| ("Classic" | "Node")
|
|
728
|
-
| {
|
|
729
|
-
[k: string]: any;
|
|
730
|
-
};
|
|
731
|
-
/**
|
|
732
|
-
* Do not report errors on unused labels.
|
|
733
|
-
*/
|
|
734
|
-
allowUnusedLabels?: boolean;
|
|
735
|
-
/**
|
|
736
|
-
* Report error when not all code paths in function return a value.
|
|
737
|
-
*/
|
|
738
|
-
noImplicitReturns?: boolean;
|
|
739
|
-
/**
|
|
740
|
-
* Report errors for fallthrough cases in switch statement.
|
|
741
|
-
*/
|
|
742
|
-
noFallthroughCasesInSwitch?: boolean;
|
|
743
|
-
/**
|
|
744
|
-
* Do not report errors on unreachable code.
|
|
745
|
-
*/
|
|
746
|
-
allowUnreachableCode?: boolean;
|
|
747
|
-
/**
|
|
748
|
-
* Disallow inconsistently-cased references to the same file.
|
|
749
|
-
*/
|
|
750
|
-
forceConsistentCasingInFileNames?: boolean;
|
|
751
|
-
/**
|
|
752
|
-
* Base directory to resolve non-relative module names.
|
|
753
|
-
*/
|
|
754
|
-
baseUrl?: string;
|
|
755
|
-
/**
|
|
756
|
-
* Specify path mapping to be computed relative to baseUrl option.
|
|
757
|
-
*/
|
|
758
|
-
paths?: {
|
|
759
|
-
[k: string]: string[];
|
|
760
|
-
};
|
|
761
|
-
/**
|
|
762
|
-
* List of TypeScript language server plugins to load. Requires TypeScript version 2.3 or later.
|
|
763
|
-
*/
|
|
764
|
-
plugins?: {
|
|
765
|
-
/**
|
|
766
|
-
* Plugin name.
|
|
767
|
-
*/
|
|
768
|
-
name?: string;
|
|
769
|
-
[k: string]: any;
|
|
770
|
-
}[];
|
|
771
|
-
/**
|
|
772
|
-
* Specify list of root directories to be used when resolving modules.
|
|
773
|
-
*/
|
|
774
|
-
rootDirs?: string[];
|
|
775
|
-
/**
|
|
776
|
-
* Specify list of directories for type definition files to be included. Requires TypeScript version 2.0 or later.
|
|
777
|
-
*/
|
|
778
|
-
typeRoots?: string[];
|
|
779
|
-
/**
|
|
780
|
-
* Type declaration files to be included in compilation. Requires TypeScript version 2.0 or later.
|
|
781
|
-
*/
|
|
782
|
-
types?: string[];
|
|
783
|
-
/**
|
|
784
|
-
* Enable tracing of the name resolution process.
|
|
785
|
-
*/
|
|
786
|
-
traceResolution?: boolean;
|
|
787
|
-
/**
|
|
788
|
-
* Allow javascript files to be compiled.
|
|
789
|
-
*/
|
|
790
|
-
allowJs?: boolean;
|
|
791
|
-
/**
|
|
792
|
-
* Do not truncate error messages.
|
|
793
|
-
*/
|
|
794
|
-
noErrorTruncation?: boolean;
|
|
795
|
-
/**
|
|
796
|
-
* Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
|
|
797
|
-
*/
|
|
798
|
-
allowSyntheticDefaultImports?: boolean;
|
|
799
|
-
/**
|
|
800
|
-
* Do not emit 'use strict' directives in module output.
|
|
801
|
-
*/
|
|
802
|
-
noImplicitUseStrict?: boolean;
|
|
803
|
-
/**
|
|
804
|
-
* Enable to list all emitted files. Requires TypeScript version 2.0 or later.
|
|
805
|
-
*/
|
|
806
|
-
listEmittedFiles?: boolean;
|
|
807
|
-
/**
|
|
808
|
-
* Disable size limit for JavaScript project. Requires TypeScript version 2.0 or later.
|
|
809
|
-
*/
|
|
810
|
-
disableSizeLimit?: boolean;
|
|
811
|
-
/**
|
|
812
|
-
* List of library files to be included in the compilation. Possible values are: 'ES5', 'ES6', 'ES2015', 'ES7', 'ES2016', 'ES2017', 'ES2018', 'ESNext', 'DOM', 'DOM.Iterable', 'WebWorker', 'ScriptHost', 'ES2015.Core', 'ES2015.Collection', 'ES2015.Generator', 'ES2015.Iterable', 'ES2015.Promise', 'ES2015.Proxy', 'ES2015.Reflect', 'ES2015.Symbol', 'ES2015.Symbol.WellKnown', 'ES2016.Array.Include', 'ES2017.object', 'ES2017.Intl', 'ES2017.SharedMemory', 'ES2017.String', 'ES2017.TypedArrays', 'ES2018.Intl', 'ES2018.Promise', 'ES2018.RegExp', 'ESNext.AsyncIterable', 'ESNext.Array', 'ESNext.Intl', 'ESNext.Symbol'. Requires TypeScript version 2.0 or later.
|
|
813
|
-
*/
|
|
814
|
-
lib?: (
|
|
815
|
-
| (
|
|
816
|
-
| "ES5"
|
|
817
|
-
| "ES6"
|
|
818
|
-
| "ES7"
|
|
819
|
-
| "ES2015"
|
|
820
|
-
| "ES2015.Collection"
|
|
821
|
-
| "ES2015.Core"
|
|
822
|
-
| "ES2015.Generator"
|
|
823
|
-
| "ES2015.Iterable"
|
|
824
|
-
| "ES2015.Promise"
|
|
825
|
-
| "ES2015.Proxy"
|
|
826
|
-
| "ES2015.Reflect"
|
|
827
|
-
| "ES2015.Symbol.WellKnown"
|
|
828
|
-
| "ES2015.Symbol"
|
|
829
|
-
| "ES2016"
|
|
830
|
-
| "ES2016.Array.Include"
|
|
831
|
-
| "ES2017"
|
|
832
|
-
| "ES2017.Intl"
|
|
833
|
-
| "ES2017.Object"
|
|
834
|
-
| "ES2017.SharedMemory"
|
|
835
|
-
| "ES2017.String"
|
|
836
|
-
| "ES2017.TypedArrays"
|
|
837
|
-
| "ES2018"
|
|
838
|
-
| "ES2018.AsyncIterable"
|
|
839
|
-
| "ES2018.Intl"
|
|
840
|
-
| "ES2018.Promise"
|
|
841
|
-
| "ES2018.Regexp"
|
|
842
|
-
| "ES2019"
|
|
843
|
-
| "ES2019.Array"
|
|
844
|
-
| "ES2019.Object"
|
|
845
|
-
| "ES2019.String"
|
|
846
|
-
| "ES2019.Symbol"
|
|
847
|
-
| "ES2020"
|
|
848
|
-
| "ES2020.BigInt"
|
|
849
|
-
| "ES2020.Promise"
|
|
850
|
-
| "ES2020.String"
|
|
851
|
-
| "ES2020.Symbol.WellKnown"
|
|
852
|
-
| "ESNext"
|
|
853
|
-
| "ESNext.Array"
|
|
854
|
-
| "ESNext.AsyncIterable"
|
|
855
|
-
| "ESNext.BigInt"
|
|
856
|
-
| "ESNext.Intl"
|
|
857
|
-
| "ESNext.Symbol"
|
|
858
|
-
| "DOM"
|
|
859
|
-
| "DOM.Iterable"
|
|
860
|
-
| "ScriptHost"
|
|
861
|
-
| "WebWorker"
|
|
862
|
-
| "WebWorker.ImportScripts"
|
|
863
|
-
)
|
|
864
|
-
| {
|
|
865
|
-
[k: string]: any;
|
|
866
|
-
}
|
|
867
|
-
| {
|
|
868
|
-
[k: string]: any;
|
|
869
|
-
}
|
|
870
|
-
| {
|
|
871
|
-
[k: string]: any;
|
|
872
|
-
}
|
|
873
|
-
| {
|
|
874
|
-
[k: string]: any;
|
|
875
|
-
}
|
|
876
|
-
| {
|
|
877
|
-
[k: string]: any;
|
|
878
|
-
}
|
|
879
|
-
| {
|
|
880
|
-
[k: string]: any;
|
|
881
|
-
}
|
|
882
|
-
| {
|
|
883
|
-
[k: string]: any;
|
|
884
|
-
}
|
|
885
|
-
| {
|
|
886
|
-
[k: string]: any;
|
|
887
|
-
}
|
|
888
|
-
| {
|
|
889
|
-
[k: string]: any;
|
|
890
|
-
}
|
|
891
|
-
| {
|
|
892
|
-
[k: string]: any;
|
|
893
|
-
}
|
|
894
|
-
| {
|
|
895
|
-
[k: string]: any;
|
|
896
|
-
}
|
|
897
|
-
)[];
|
|
898
|
-
/**
|
|
899
|
-
* Enable strict null checks. Requires TypeScript version 2.0 or later.
|
|
900
|
-
*/
|
|
901
|
-
strictNullChecks?: boolean;
|
|
902
|
-
/**
|
|
903
|
-
* The maximum dependency depth to search under node_modules and load JavaScript files. Only applicable with --allowJs.
|
|
904
|
-
*/
|
|
905
|
-
maxNodeModuleJsDepth?: number;
|
|
906
|
-
/**
|
|
907
|
-
* Import emit helpers (e.g. '__extends', '__rest', etc..) from tslib. Requires TypeScript version 2.1 or later.
|
|
908
|
-
*/
|
|
909
|
-
importHelpers?: boolean;
|
|
910
|
-
/**
|
|
911
|
-
* Specify emit/checking behavior for imports that are only used for types
|
|
912
|
-
*/
|
|
913
|
-
importsNotUsedAsValues?: "remove" | "preserve" | "error";
|
|
914
|
-
/**
|
|
915
|
-
* Specify the JSX factory function to use when targeting react JSX emit, e.g. 'React.createElement' or 'h'. Requires TypeScript version 2.1 or later.
|
|
916
|
-
*/
|
|
917
|
-
jsxFactory?: string;
|
|
918
|
-
/**
|
|
919
|
-
* Parse in strict mode and emit 'use strict' for each source file. Requires TypeScript version 2.1 or later.
|
|
920
|
-
*/
|
|
921
|
-
alwaysStrict?: boolean;
|
|
922
|
-
/**
|
|
923
|
-
* Enable all strict type checking options. Requires TypeScript version 2.3 or later.
|
|
924
|
-
*/
|
|
925
|
-
strict?: boolean;
|
|
926
|
-
/**
|
|
927
|
-
* Enable stricter checking of of the `bind`, `call`, and `apply` methods on functions.
|
|
928
|
-
*/
|
|
929
|
-
strictBindCallApply?: boolean;
|
|
930
|
-
/**
|
|
931
|
-
* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. Requires TypeScript version 2.3 or later.
|
|
932
|
-
*/
|
|
933
|
-
downlevelIteration?: boolean;
|
|
934
|
-
/**
|
|
935
|
-
* Report errors in .js files. Requires TypeScript version 2.3 or later.
|
|
936
|
-
*/
|
|
937
|
-
checkJs?: boolean;
|
|
938
|
-
/**
|
|
939
|
-
* Disable bivariant parameter checking for function types. Requires TypeScript version 2.6 or later.
|
|
940
|
-
*/
|
|
941
|
-
strictFunctionTypes?: boolean;
|
|
942
|
-
/**
|
|
943
|
-
* Ensure non-undefined class properties are initialized in the constructor. Requires TypeScript version 2.7 or later.
|
|
944
|
-
*/
|
|
945
|
-
strictPropertyInitialization?: boolean;
|
|
946
|
-
/**
|
|
947
|
-
* Emit '__importStar' and '__importDefault' helpers for runtime babel ecosystem compatibility and enable '--allowSyntheticDefaultImports' for typesystem compatibility. Requires TypeScript version 2.7 or later.
|
|
948
|
-
*/
|
|
949
|
-
esModuleInterop?: boolean;
|
|
950
|
-
/**
|
|
951
|
-
* Allow accessing UMD globals from modules.
|
|
952
|
-
*/
|
|
953
|
-
allowUmdGlobalAccess?: boolean;
|
|
954
|
-
/**
|
|
955
|
-
* Resolve 'keyof' to string valued property names only (no numbers or symbols). Requires TypeScript version 2.9 or later.
|
|
956
|
-
*/
|
|
957
|
-
keyofStringsOnly?: boolean;
|
|
958
|
-
/**
|
|
959
|
-
* Emit ECMAScript standard class fields. Requires TypeScript version 3.7 or later.
|
|
960
|
-
*/
|
|
961
|
-
useDefineForClassFields?: boolean;
|
|
962
|
-
/**
|
|
963
|
-
* Generates a sourcemap for each corresponding '.d.ts' file. Requires TypeScript version 2.9 or later.
|
|
964
|
-
*/
|
|
965
|
-
declarationMap?: boolean;
|
|
966
|
-
/**
|
|
967
|
-
* Include modules imported with '.json' extension. Requires TypeScript version 2.9 or later.
|
|
968
|
-
*/
|
|
969
|
-
resolveJsonModule?: boolean;
|
|
970
|
-
/**
|
|
971
|
-
* Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it.
|
|
972
|
-
*/
|
|
973
|
-
assumeChangesOnlyAffectDirectDependencies?: boolean;
|
|
974
|
-
[k: string]: any;
|
|
975
|
-
};
|
|
743
|
+
compilerOptions?: CompilerOptions;
|
|
976
744
|
/**
|
|
977
745
|
* Emit output files into `.ts-node` directory.
|
|
978
746
|
*/
|
|
979
747
|
emit?: boolean;
|
|
980
748
|
/**
|
|
981
|
-
*
|
|
749
|
+
* Enable native ESM support.
|
|
750
|
+
*
|
|
751
|
+
* For details, see https://typestrong.org/ts-node/docs/imports#native-ecmascript-modules
|
|
752
|
+
*/
|
|
753
|
+
esm?: boolean;
|
|
754
|
+
/**
|
|
755
|
+
* Allows the usage of top level await in REPL.
|
|
756
|
+
*
|
|
757
|
+
* Uses node's implementation which accomplishes this with an AST syntax transformation.
|
|
758
|
+
*
|
|
759
|
+
* Enabled by default when tsconfig target is es2018 or above. Set to false to disable.
|
|
760
|
+
*
|
|
761
|
+
* **Note**: setting to `true` when tsconfig target is too low will throw an Error. Leave as `undefined`
|
|
762
|
+
* to get default, automatic behavior.
|
|
763
|
+
*/
|
|
764
|
+
experimentalReplAwait?: boolean;
|
|
765
|
+
/**
|
|
766
|
+
* Enable experimental features that re-map imports and require calls to support:
|
|
767
|
+
* `baseUrl`, `paths`, `rootDirs`, `.js` to `.ts` file extension mappings,
|
|
768
|
+
* `outDir` to `rootDir` mappings for composite projects and monorepos.
|
|
769
|
+
*
|
|
770
|
+
* For details, see https://github.com/TypeStrong/ts-node/issues/1514
|
|
771
|
+
*/
|
|
772
|
+
experimentalResolver?: boolean;
|
|
773
|
+
/**
|
|
774
|
+
* Like node's `--experimental-specifier-resolution`, , but can also be set in your `tsconfig.json` for convenience.
|
|
775
|
+
*
|
|
776
|
+
* For details, see https://nodejs.org/dist/latest-v18.x/docs/api/esm.html#customizing-esm-specifier-resolution-algorithm
|
|
777
|
+
*/
|
|
778
|
+
experimentalSpecifierResolution?: "explicit" | "node";
|
|
779
|
+
/**
|
|
780
|
+
* Load "files" and "include" from `tsconfig.json` on startup.
|
|
781
|
+
*
|
|
782
|
+
* Default is to override `tsconfig.json` "files" and "include" to only include the entrypoint script.
|
|
982
783
|
*/
|
|
983
784
|
files?: boolean;
|
|
984
785
|
/**
|
|
985
|
-
*
|
|
786
|
+
* Paths which should not be compiled.
|
|
787
|
+
*
|
|
788
|
+
* Each string in the array is converted to a regular expression via `new RegExp()` and tested against source paths prior to compilation.
|
|
789
|
+
*
|
|
790
|
+
* Source paths are normalized to posix-style separators, relative to the directory containing `tsconfig.json` or to cwd if no `tsconfig.json` is loaded.
|
|
791
|
+
*
|
|
792
|
+
* Default is to ignore all node_modules subdirectories.
|
|
986
793
|
*/
|
|
987
794
|
ignore?: string[];
|
|
988
795
|
/**
|
|
@@ -993,8 +800,11 @@ export interface TsNodeDefinition {
|
|
|
993
800
|
* Logs TypeScript errors to stderr instead of throwing exceptions.
|
|
994
801
|
*/
|
|
995
802
|
logError?: boolean;
|
|
803
|
+
moduleTypes?: TsNodeModuleTypes;
|
|
996
804
|
/**
|
|
997
805
|
* Re-order file extensions so that TypeScript imports are preferred.
|
|
806
|
+
*
|
|
807
|
+
* 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`
|
|
998
808
|
*/
|
|
999
809
|
preferTsExts?: boolean;
|
|
1000
810
|
/**
|
|
@@ -1002,45 +812,92 @@ export interface TsNodeDefinition {
|
|
|
1002
812
|
*/
|
|
1003
813
|
pretty?: boolean;
|
|
1004
814
|
/**
|
|
1005
|
-
*
|
|
815
|
+
* Modules to require, like node's `--require` flag.
|
|
816
|
+
*
|
|
817
|
+
* If specified in `tsconfig.json`, the modules will be resolved relative to the `tsconfig.json` file.
|
|
818
|
+
*
|
|
819
|
+
* If specified programmatically, each input string should be pre-resolved to an absolute path for
|
|
820
|
+
* best results.
|
|
821
|
+
*/
|
|
822
|
+
require?: string[];
|
|
823
|
+
/**
|
|
824
|
+
* Scope compiler to files within `scopeDir`.
|
|
1006
825
|
*/
|
|
1007
826
|
scope?: boolean;
|
|
827
|
+
scopeDir?: string;
|
|
1008
828
|
/**
|
|
1009
|
-
* Skip ignore check.
|
|
829
|
+
* Skip ignore check, so that compilation will be attempted for all files with matching extensions.
|
|
1010
830
|
*/
|
|
1011
831
|
skipIgnore?: boolean;
|
|
832
|
+
/**
|
|
833
|
+
* Transpile with swc instead of the TypeScript compiler, and skip typechecking.
|
|
834
|
+
*
|
|
835
|
+
* Equivalent to setting both `transpileOnly: true` and `transpiler: 'ts-node/transpilers/swc'`
|
|
836
|
+
*
|
|
837
|
+
* For complete instructions: https://typestrong.org/ts-node/docs/transpilers
|
|
838
|
+
*/
|
|
839
|
+
swc?: boolean;
|
|
1012
840
|
/**
|
|
1013
841
|
* Use TypeScript's faster `transpileModule`.
|
|
1014
842
|
*/
|
|
1015
843
|
transpileOnly?: boolean;
|
|
844
|
+
/**
|
|
845
|
+
* Specify a custom transpiler for use with transpileOnly
|
|
846
|
+
*/
|
|
847
|
+
transpiler?:
|
|
848
|
+
| [
|
|
849
|
+
string,
|
|
850
|
+
{
|
|
851
|
+
[k: string]: unknown;
|
|
852
|
+
}
|
|
853
|
+
]
|
|
854
|
+
| string;
|
|
1016
855
|
/**
|
|
1017
856
|
* **DEPRECATED** Specify type-check is enabled (e.g. `transpileOnly == false`).
|
|
1018
857
|
*/
|
|
1019
858
|
typeCheck?: boolean;
|
|
1020
|
-
[k: string]:
|
|
859
|
+
[k: string]: unknown;
|
|
1021
860
|
};
|
|
1022
|
-
[k: string]:
|
|
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 {
|
|
879
|
+
[k: string]: unknown;
|
|
1023
880
|
}
|
|
1024
881
|
export interface FilesDefinition {
|
|
1025
882
|
/**
|
|
1026
883
|
* 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.
|
|
1027
884
|
*/
|
|
1028
885
|
files?: string[];
|
|
1029
|
-
[k: string]:
|
|
886
|
+
[k: string]: unknown;
|
|
1030
887
|
}
|
|
1031
888
|
export interface ExcludeDefinition {
|
|
1032
889
|
/**
|
|
1033
890
|
* 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.
|
|
1034
891
|
*/
|
|
1035
892
|
exclude?: string[];
|
|
1036
|
-
[k: string]:
|
|
893
|
+
[k: string]: unknown;
|
|
1037
894
|
}
|
|
1038
895
|
export interface IncludeDefinition {
|
|
1039
896
|
/**
|
|
1040
897
|
* 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.
|
|
1041
898
|
*/
|
|
1042
899
|
include?: string[];
|
|
1043
|
-
[k: string]:
|
|
900
|
+
[k: string]: unknown;
|
|
1044
901
|
}
|
|
1045
902
|
export interface ReferencesDefinition {
|
|
1046
903
|
/**
|
|
@@ -1051,7 +908,7 @@ export interface ReferencesDefinition {
|
|
|
1051
908
|
* Path to referenced tsconfig or to folder containing tsconfig.
|
|
1052
909
|
*/
|
|
1053
910
|
path?: string;
|
|
1054
|
-
[k: string]:
|
|
911
|
+
[k: string]: unknown;
|
|
1055
912
|
}[];
|
|
1056
|
-
[k: string]:
|
|
913
|
+
[k: string]: unknown;
|
|
1057
914
|
}
|