serverless-spy 0.0.60 → 0.0.62

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.
Files changed (101) hide show
  1. package/.jsii +4 -3
  2. package/README.md +1 -1
  3. package/_config.yml +14 -3
  4. package/assets/images/site-logo.png +0 -0
  5. package/dist/releasetag.txt +1 -1
  6. package/doc/Lambda.md +2 -0
  7. package/extension/interceptor.ts +5 -1
  8. package/lib/extension/dist/layer/nodejs/node_modules/interceptor.js +147 -2
  9. package/lib/extension/dist/layer/nodejs/node_modules/interceptor.js.map +4 -4
  10. package/lib/src/ServerlessSpy.js +1 -1
  11. package/logo/full_logo.png +0 -0
  12. package/node_modules/serialize-error/error-constructors.d.ts +8 -0
  13. package/node_modules/serialize-error/error-constructors.js +26 -0
  14. package/node_modules/serialize-error/index.d.ts +171 -0
  15. package/node_modules/serialize-error/index.js +205 -0
  16. package/node_modules/serialize-error/license +9 -0
  17. package/node_modules/serialize-error/node_modules/type-fest/index.d.ts +95 -0
  18. package/node_modules/serialize-error/node_modules/type-fest/package.json +52 -0
  19. package/node_modules/serialize-error/node_modules/type-fest/readme.md +905 -0
  20. package/node_modules/serialize-error/node_modules/type-fest/source/async-return-type.d.ts +25 -0
  21. package/node_modules/serialize-error/node_modules/type-fest/source/asyncify.d.ts +33 -0
  22. package/node_modules/serialize-error/node_modules/type-fest/source/basic.d.ts +45 -0
  23. package/node_modules/serialize-error/node_modules/type-fest/source/camel-case.d.ts +73 -0
  24. package/node_modules/serialize-error/node_modules/type-fest/source/camel-cased-properties-deep.d.ts +54 -0
  25. package/node_modules/serialize-error/node_modules/type-fest/source/camel-cased-properties.d.ts +36 -0
  26. package/node_modules/serialize-error/node_modules/type-fest/source/conditional-except.d.ts +45 -0
  27. package/node_modules/serialize-error/node_modules/type-fest/source/conditional-keys.d.ts +47 -0
  28. package/node_modules/serialize-error/node_modules/type-fest/source/conditional-pick.d.ts +44 -0
  29. package/node_modules/serialize-error/node_modules/type-fest/source/delimiter-case.d.ts +93 -0
  30. package/node_modules/serialize-error/node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts +60 -0
  31. package/node_modules/serialize-error/node_modules/type-fest/source/delimiter-cased-properties.d.ts +37 -0
  32. package/node_modules/serialize-error/node_modules/type-fest/source/entries.d.ts +62 -0
  33. package/node_modules/serialize-error/node_modules/type-fest/source/entry.d.ts +65 -0
  34. package/node_modules/serialize-error/node_modules/type-fest/source/exact.d.ts +73 -0
  35. package/node_modules/serialize-error/node_modules/type-fest/source/except.d.ts +57 -0
  36. package/node_modules/serialize-error/node_modules/type-fest/source/fixed-length-array.d.ts +43 -0
  37. package/node_modules/serialize-error/node_modules/type-fest/source/get.d.ts +184 -0
  38. package/node_modules/serialize-error/node_modules/type-fest/source/has-optional-keys.d.ts +21 -0
  39. package/node_modules/serialize-error/node_modules/type-fest/source/has-required-keys.d.ts +59 -0
  40. package/node_modules/serialize-error/node_modules/type-fest/source/includes.d.ts +22 -0
  41. package/node_modules/serialize-error/node_modules/type-fest/source/internal.d.ts +59 -0
  42. package/node_modules/serialize-error/node_modules/type-fest/source/invariant-of.d.ts +76 -0
  43. package/node_modules/serialize-error/node_modules/type-fest/source/iterable-element.d.ts +54 -0
  44. package/node_modules/serialize-error/node_modules/type-fest/source/join.d.ts +30 -0
  45. package/node_modules/serialize-error/node_modules/type-fest/source/jsonify.d.ts +90 -0
  46. package/node_modules/serialize-error/node_modules/type-fest/source/kebab-case.d.ts +38 -0
  47. package/node_modules/serialize-error/node_modules/type-fest/source/kebab-cased-properties-deep.d.ts +47 -0
  48. package/node_modules/serialize-error/node_modules/type-fest/source/kebab-cased-properties.d.ts +30 -0
  49. package/node_modules/serialize-error/node_modules/type-fest/source/last-array-element.d.ts +28 -0
  50. package/node_modules/serialize-error/node_modules/type-fest/source/literal-to-primitive.d.ts +36 -0
  51. package/node_modules/serialize-error/node_modules/type-fest/source/literal-union.d.ts +35 -0
  52. package/node_modules/serialize-error/node_modules/type-fest/source/merge-exclusive.d.ts +41 -0
  53. package/node_modules/serialize-error/node_modules/type-fest/source/merge.d.ts +27 -0
  54. package/node_modules/serialize-error/node_modules/type-fest/source/multidimensional-array.d.ts +43 -0
  55. package/node_modules/serialize-error/node_modules/type-fest/source/multidimensional-readonly-array.d.ts +47 -0
  56. package/node_modules/serialize-error/node_modules/type-fest/source/mutable.d.ts +5 -0
  57. package/node_modules/serialize-error/node_modules/type-fest/source/numeric.d.ts +170 -0
  58. package/node_modules/serialize-error/node_modules/type-fest/source/observable-like.d.ts +62 -0
  59. package/node_modules/serialize-error/node_modules/type-fest/source/opaque.d.ts +107 -0
  60. package/node_modules/serialize-error/node_modules/type-fest/source/optional-keys-of.d.ts +38 -0
  61. package/node_modules/serialize-error/node_modules/type-fest/source/package-json.d.ts +663 -0
  62. package/node_modules/serialize-error/node_modules/type-fest/source/partial-deep.d.ts +113 -0
  63. package/node_modules/serialize-error/node_modules/type-fest/source/partial-on-undefined-deep.d.ts +70 -0
  64. package/node_modules/serialize-error/node_modules/type-fest/source/pascal-case.d.ts +38 -0
  65. package/node_modules/serialize-error/node_modules/type-fest/source/pascal-cased-properties-deep.d.ts +54 -0
  66. package/node_modules/serialize-error/node_modules/type-fest/source/pascal-cased-properties.d.ts +34 -0
  67. package/node_modules/serialize-error/node_modules/type-fest/source/primitive.d.ts +13 -0
  68. package/node_modules/serialize-error/node_modules/type-fest/source/promisable.d.ts +25 -0
  69. package/node_modules/serialize-error/node_modules/type-fest/source/promise-value.d.ts +29 -0
  70. package/node_modules/serialize-error/node_modules/type-fest/source/readonly-deep.d.ts +85 -0
  71. package/node_modules/serialize-error/node_modules/type-fest/source/readonly-tuple.d.ts +41 -0
  72. package/node_modules/serialize-error/node_modules/type-fest/source/remove-index-signature.d.ts +104 -0
  73. package/node_modules/serialize-error/node_modules/type-fest/source/replace.d.ts +67 -0
  74. package/node_modules/serialize-error/node_modules/type-fest/source/require-all-or-none.d.ts +36 -0
  75. package/node_modules/serialize-error/node_modules/type-fest/source/require-at-least-one.d.ts +35 -0
  76. package/node_modules/serialize-error/node_modules/type-fest/source/require-exactly-one.d.ts +34 -0
  77. package/node_modules/serialize-error/node_modules/type-fest/source/required-keys-of.d.ts +29 -0
  78. package/node_modules/serialize-error/node_modules/type-fest/source/schema.d.ts +72 -0
  79. package/node_modules/serialize-error/node_modules/type-fest/source/screaming-snake-case.d.ts +33 -0
  80. package/node_modules/serialize-error/node_modules/type-fest/source/set-non-nullable.d.ts +35 -0
  81. package/node_modules/serialize-error/node_modules/type-fest/source/set-optional.d.ts +35 -0
  82. package/node_modules/serialize-error/node_modules/type-fest/source/set-required.d.ts +35 -0
  83. package/node_modules/serialize-error/node_modules/type-fest/source/set-return-type.d.ts +31 -0
  84. package/node_modules/serialize-error/node_modules/type-fest/source/simplify.d.ts +83 -0
  85. package/node_modules/serialize-error/node_modules/type-fest/source/snake-case.d.ts +38 -0
  86. package/node_modules/serialize-error/node_modules/type-fest/source/snake-cased-properties-deep.d.ts +47 -0
  87. package/node_modules/serialize-error/node_modules/type-fest/source/snake-cased-properties.d.ts +30 -0
  88. package/node_modules/serialize-error/node_modules/type-fest/source/split.d.ts +29 -0
  89. package/node_modules/serialize-error/node_modules/type-fest/source/spread.d.ts +85 -0
  90. package/node_modules/serialize-error/node_modules/type-fest/source/string-key-of.d.ts +25 -0
  91. package/node_modules/serialize-error/node_modules/type-fest/source/stringified.d.ts +23 -0
  92. package/node_modules/serialize-error/node_modules/type-fest/source/trim.d.ts +25 -0
  93. package/node_modules/serialize-error/node_modules/type-fest/source/tsconfig-json.d.ts +1172 -0
  94. package/node_modules/serialize-error/node_modules/type-fest/source/typed-array.d.ts +17 -0
  95. package/node_modules/serialize-error/node_modules/type-fest/source/union-to-intersection.d.ts +60 -0
  96. package/node_modules/serialize-error/node_modules/type-fest/source/value-of.d.ts +42 -0
  97. package/node_modules/serialize-error/node_modules/type-fest/source/writable.d.ts +40 -0
  98. package/node_modules/serialize-error/package.json +46 -0
  99. package/node_modules/serialize-error/readme.md +198 -0
  100. package/package.json +6 -4
  101. package/doc/sample_app.md +0 -0
@@ -0,0 +1,1172 @@
1
+ declare namespace TsConfigJson {
2
+ namespace CompilerOptions {
3
+ export type JSX =
4
+ | 'preserve'
5
+ | 'react'
6
+ | 'react-jsx'
7
+ | 'react-jsxdev'
8
+ | 'react-native';
9
+
10
+ export type Module =
11
+ | 'CommonJS'
12
+ | 'AMD'
13
+ | 'System'
14
+ | 'UMD'
15
+ | 'ES6'
16
+ | 'ES2015'
17
+ | 'ES2020'
18
+ | 'ES2022'
19
+ | 'ESNext'
20
+ | 'None'
21
+ // Lowercase alternatives
22
+ | 'commonjs'
23
+ | 'amd'
24
+ | 'system'
25
+ | 'umd'
26
+ | 'es6'
27
+ | 'es2015'
28
+ | 'es2020'
29
+ | 'es2022'
30
+ | 'esnext'
31
+ | 'none';
32
+
33
+ export type NewLine =
34
+ | 'CRLF'
35
+ | 'LF'
36
+ // Lowercase alternatives
37
+ | 'crlf'
38
+ | 'lf';
39
+
40
+ export type Target =
41
+ | 'ES3'
42
+ | 'ES5'
43
+ | 'ES6'
44
+ | 'ES2015'
45
+ | 'ES2016'
46
+ | 'ES2017'
47
+ | 'ES2018'
48
+ | 'ES2019'
49
+ | 'ES2020'
50
+ | 'ES2021'
51
+ | 'ESNext'
52
+ // Lowercase alternatives
53
+ | 'es3'
54
+ | 'es5'
55
+ | 'es6'
56
+ | 'es2015'
57
+ | 'es2016'
58
+ | 'es2017'
59
+ | 'es2018'
60
+ | 'es2019'
61
+ | 'es2020'
62
+ | 'es2021'
63
+ | 'esnext';
64
+
65
+ export type Lib =
66
+ | 'ES5'
67
+ | 'ES6'
68
+ | 'ES7'
69
+ | 'ES2015'
70
+ | 'ES2015.Collection'
71
+ | 'ES2015.Core'
72
+ | 'ES2015.Generator'
73
+ | 'ES2015.Iterable'
74
+ | 'ES2015.Promise'
75
+ | 'ES2015.Proxy'
76
+ | 'ES2015.Reflect'
77
+ | 'ES2015.Symbol.WellKnown'
78
+ | 'ES2015.Symbol'
79
+ | 'ES2016'
80
+ | 'ES2016.Array.Include'
81
+ | 'ES2017'
82
+ | 'ES2017.Intl'
83
+ | 'ES2017.Object'
84
+ | 'ES2017.SharedMemory'
85
+ | 'ES2017.String'
86
+ | 'ES2017.TypedArrays'
87
+ | 'ES2018'
88
+ | 'ES2018.AsyncGenerator'
89
+ | 'ES2018.AsyncIterable'
90
+ | 'ES2018.Intl'
91
+ | 'ES2018.Promise'
92
+ | 'ES2018.Regexp'
93
+ | 'ES2019'
94
+ | 'ES2019.Array'
95
+ | 'ES2019.Object'
96
+ | 'ES2019.String'
97
+ | 'ES2019.Symbol'
98
+ | 'ES2020'
99
+ | 'ES2020.BigInt'
100
+ | 'ES2020.Promise'
101
+ | 'ES2020.String'
102
+ | 'ES2020.Symbol.WellKnown'
103
+ | 'ES2020.SharedMemory'
104
+ | 'ES2020.Intl'
105
+ | 'ES2021'
106
+ | 'ES2021.Promise'
107
+ | 'ES2021.String'
108
+ | 'ES2021.WeakRef'
109
+ | 'ESNext'
110
+ | 'ESNext.Array'
111
+ | 'ESNext.AsyncIterable'
112
+ | 'ESNext.BigInt'
113
+ | 'ESNext.Intl'
114
+ | 'ESNext.Promise'
115
+ | 'ESNext.String'
116
+ | 'ESNext.Symbol'
117
+ | 'ESNext.WeakRef'
118
+ | 'DOM'
119
+ | 'DOM.Iterable'
120
+ | 'ScriptHost'
121
+ | 'WebWorker'
122
+ | 'WebWorker.ImportScripts'
123
+ | 'WebWorker.Iterable'
124
+ // Lowercase alternatives
125
+ | 'es5'
126
+ | 'es6'
127
+ | 'es7'
128
+ | 'es2015'
129
+ | 'es2015.collection'
130
+ | 'es2015.core'
131
+ | 'es2015.generator'
132
+ | 'es2015.iterable'
133
+ | 'es2015.promise'
134
+ | 'es2015.proxy'
135
+ | 'es2015.reflect'
136
+ | 'es2015.symbol.wellknown'
137
+ | 'es2015.symbol'
138
+ | 'es2016'
139
+ | 'es2016.array.include'
140
+ | 'es2017'
141
+ | 'es2017.intl'
142
+ | 'es2017.object'
143
+ | 'es2017.sharedmemory'
144
+ | 'es2017.string'
145
+ | 'es2017.typedarrays'
146
+ | 'es2018'
147
+ | 'es2018.asyncgenerator'
148
+ | 'es2018.asynciterable'
149
+ | 'es2018.intl'
150
+ | 'es2018.promise'
151
+ | 'es2018.regexp'
152
+ | 'es2019'
153
+ | 'es2019.array'
154
+ | 'es2019.object'
155
+ | 'es2019.string'
156
+ | 'es2019.symbol'
157
+ | 'es2020'
158
+ | 'es2020.bigint'
159
+ | 'es2020.promise'
160
+ | 'es2020.string'
161
+ | 'es2020.symbol.wellknown'
162
+ | 'es2020.sharedmemory'
163
+ | 'es2020.intl'
164
+ | 'es2021'
165
+ | 'es2021.promise'
166
+ | 'es2021.string'
167
+ | 'es2021.weakref'
168
+ | 'esnext'
169
+ | 'esnext.array'
170
+ | 'esnext.asynciterable'
171
+ | 'esnext.bigint'
172
+ | 'esnext.intl'
173
+ | 'esnext.promise'
174
+ | 'esnext.string'
175
+ | 'esnext.symbol'
176
+ | 'esnext.weakref'
177
+ | 'dom'
178
+ | 'dom.iterable'
179
+ | 'scripthost'
180
+ | 'webworker'
181
+ | 'webworker.importscripts'
182
+ | 'webworker.iterable';
183
+
184
+ export interface Plugin {
185
+ [key: string]: unknown;
186
+ /**
187
+ Plugin name.
188
+ */
189
+ name?: string;
190
+ }
191
+
192
+ export type ImportsNotUsedAsValues =
193
+ | 'remove'
194
+ | 'preserve'
195
+ | 'error';
196
+
197
+ export type FallbackPolling =
198
+ | 'fixedPollingInterval'
199
+ | 'priorityPollingInterval'
200
+ | 'dynamicPriorityPolling'
201
+ | 'fixedInterval'
202
+ | 'priorityInterval'
203
+ | 'dynamicPriority'
204
+ | 'fixedChunkSize';
205
+
206
+ export type WatchDirectory =
207
+ | 'useFsEvents'
208
+ | 'fixedPollingInterval'
209
+ | 'dynamicPriorityPolling'
210
+ | 'fixedChunkSizePolling';
211
+
212
+ export type WatchFile =
213
+ | 'fixedPollingInterval'
214
+ | 'priorityPollingInterval'
215
+ | 'dynamicPriorityPolling'
216
+ | 'useFsEvents'
217
+ | 'useFsEventsOnParentDirectory'
218
+ | 'fixedChunkSizePolling';
219
+
220
+ }
221
+
222
+ export interface CompilerOptions {
223
+ /**
224
+ The character set of the input files.
225
+
226
+ @default 'utf8'
227
+ */
228
+ charset?: string;
229
+
230
+ /**
231
+ Enables building for project references.
232
+
233
+ @default true
234
+ */
235
+ composite?: boolean;
236
+
237
+ /**
238
+ Generates corresponding d.ts files.
239
+
240
+ @default false
241
+ */
242
+ declaration?: boolean;
243
+
244
+ /**
245
+ Specify output directory for generated declaration files.
246
+
247
+ Requires TypeScript version 2.0 or later.
248
+ */
249
+ declarationDir?: string;
250
+
251
+ /**
252
+ Show diagnostic information.
253
+
254
+ @default false
255
+ */
256
+ diagnostics?: boolean;
257
+
258
+ /**
259
+ Reduce the number of projects loaded automatically by TypeScript.
260
+
261
+ Requires TypeScript version 4.0 or later.
262
+
263
+ @default false
264
+ */
265
+ disableReferencedProjectLoad?: boolean;
266
+
267
+ /**
268
+ Enforces using indexed accessors for keys declared using an indexed type.
269
+
270
+ Requires TypeScript version 4.2 or later.
271
+
272
+ @default false
273
+ */
274
+ noPropertyAccessFromIndexSignature?: boolean;
275
+
276
+ /**
277
+ Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.
278
+
279
+ @default false
280
+ */
281
+ emitBOM?: boolean;
282
+
283
+ /**
284
+ Only emit `.d.ts` declaration files.
285
+
286
+ @default false
287
+ */
288
+ emitDeclarationOnly?: boolean;
289
+
290
+ /**
291
+ Differentiate between undefined and not present when type checking.
292
+
293
+ Requires TypeScript version 4.4 or later.
294
+
295
+ @default false
296
+ */
297
+ exactOptionalPropertyTypes?: boolean;
298
+
299
+ /**
300
+ Enable incremental compilation.
301
+
302
+ @default `composite`
303
+ */
304
+ incremental?: boolean;
305
+
306
+ /**
307
+ Specify file to store incremental compilation information.
308
+
309
+ @default '.tsbuildinfo'
310
+ */
311
+ tsBuildInfoFile?: string;
312
+
313
+ /**
314
+ Emit a single file with source maps instead of having a separate file.
315
+
316
+ @default false
317
+ */
318
+ inlineSourceMap?: boolean;
319
+
320
+ /**
321
+ Emit the source alongside the sourcemaps within a single file.
322
+
323
+ Requires `--inlineSourceMap` to be set.
324
+
325
+ @default false
326
+ */
327
+ inlineSources?: boolean;
328
+
329
+ /**
330
+ Specify what JSX code is generated.
331
+
332
+ @default 'preserve'
333
+ */
334
+ jsx?: CompilerOptions.JSX;
335
+
336
+ /**
337
+ Specifies the object invoked for `createElement` and `__spread` when targeting `'react'` JSX emit.
338
+
339
+ @default 'React'
340
+ */
341
+ reactNamespace?: string;
342
+
343
+ /**
344
+ Specify the JSX factory function to use when targeting React JSX emit, e.g. `React.createElement` or `h`.
345
+
346
+ Requires TypeScript version 2.1 or later.
347
+
348
+ @default 'React.createElement'
349
+ */
350
+ jsxFactory?: string;
351
+
352
+ /**
353
+ Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'.
354
+
355
+ Requires TypeScript version 4.0 or later.
356
+
357
+ @default 'React.Fragment'
358
+ */
359
+ jsxFragmentFactory?: string;
360
+
361
+ /**
362
+ Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.
363
+
364
+ Requires TypeScript version 4.1 or later.
365
+
366
+ @default 'react'
367
+ */
368
+ jsxImportSource?: string;
369
+
370
+ /**
371
+ Print names of files part of the compilation.
372
+
373
+ @default false
374
+ */
375
+ listFiles?: boolean;
376
+
377
+ /**
378
+ Specifies the location where debugger should locate map files instead of generated locations.
379
+ */
380
+ mapRoot?: string;
381
+
382
+ /**
383
+ Specify module code generation: 'None', 'CommonJS', 'AMD', 'System', 'UMD', 'ES6', 'ES2015' or 'ESNext'. Only 'AMD' and 'System' can be used in conjunction with `--outFile`. 'ES6' and 'ES2015' values may be used when targeting 'ES5' or lower.
384
+
385
+ @default ['ES3', 'ES5'].includes(target) ? 'CommonJS' : 'ES6'
386
+ */
387
+ module?: CompilerOptions.Module;
388
+
389
+ /**
390
+ Specifies module resolution strategy: 'node' (Node) or 'classic' (TypeScript pre 1.6).
391
+
392
+ @default ['AMD', 'System', 'ES6'].includes(module) ? 'classic' : 'node'
393
+ */
394
+ moduleResolution?: 'classic' | 'node';
395
+
396
+ /**
397
+ Specifies the end of line sequence to be used when emitting files: 'crlf' (Windows) or 'lf' (Unix).
398
+
399
+ Default: Platform specific
400
+ */
401
+ newLine?: CompilerOptions.NewLine;
402
+
403
+ /**
404
+ Do not emit output.
405
+
406
+ @default false
407
+ */
408
+ noEmit?: boolean;
409
+
410
+ /**
411
+ Do not generate custom helper functions like `__extends` in compiled output.
412
+
413
+ @default false
414
+ */
415
+ noEmitHelpers?: boolean;
416
+
417
+ /**
418
+ Do not emit outputs if any type checking errors were reported.
419
+
420
+ @default false
421
+ */
422
+ noEmitOnError?: boolean;
423
+
424
+ /**
425
+ Warn on expressions and declarations with an implied 'any' type.
426
+
427
+ @default false
428
+ */
429
+ noImplicitAny?: boolean;
430
+
431
+ /**
432
+ Raise error on 'this' expressions with an implied any type.
433
+
434
+ @default false
435
+ */
436
+ noImplicitThis?: boolean;
437
+
438
+ /**
439
+ Report errors on unused locals.
440
+
441
+ Requires TypeScript version 2.0 or later.
442
+
443
+ @default false
444
+ */
445
+ noUnusedLocals?: boolean;
446
+
447
+ /**
448
+ Report errors on unused parameters.
449
+
450
+ Requires TypeScript version 2.0 or later.
451
+
452
+ @default false
453
+ */
454
+ noUnusedParameters?: boolean;
455
+
456
+ /**
457
+ Do not include the default library file (lib.d.ts).
458
+
459
+ @default false
460
+ */
461
+ noLib?: boolean;
462
+
463
+ /**
464
+ Do not add triple-slash references or module import targets to the list of compiled files.
465
+
466
+ @default false
467
+ */
468
+ noResolve?: boolean;
469
+
470
+ /**
471
+ Disable strict checking of generic signatures in function types.
472
+
473
+ @default false
474
+ */
475
+ noStrictGenericChecks?: boolean;
476
+
477
+ /**
478
+ @deprecated use `skipLibCheck` instead.
479
+ */
480
+ skipDefaultLibCheck?: boolean;
481
+
482
+ /**
483
+ Skip type checking of declaration files.
484
+
485
+ Requires TypeScript version 2.0 or later.
486
+
487
+ @default false
488
+ */
489
+ skipLibCheck?: boolean;
490
+
491
+ /**
492
+ Concatenate and emit output to single file.
493
+ */
494
+ outFile?: string;
495
+
496
+ /**
497
+ Redirect output structure to the directory.
498
+ */
499
+ outDir?: string;
500
+
501
+ /**
502
+ Do not erase const enum declarations in generated code.
503
+
504
+ @default false
505
+ */
506
+ preserveConstEnums?: boolean;
507
+
508
+ /**
509
+ Do not resolve symlinks to their real path; treat a symlinked file like a real one.
510
+
511
+ @default false
512
+ */
513
+ preserveSymlinks?: boolean;
514
+
515
+ /**
516
+ Keep outdated console output in watch mode instead of clearing the screen.
517
+
518
+ @default false
519
+ */
520
+ preserveWatchOutput?: boolean;
521
+
522
+ /**
523
+ Stylize errors and messages using color and context (experimental).
524
+
525
+ @default true // Unless piping to another program or redirecting output to a file.
526
+ */
527
+ pretty?: boolean;
528
+
529
+ /**
530
+ Do not emit comments to output.
531
+
532
+ @default false
533
+ */
534
+ removeComments?: boolean;
535
+
536
+ /**
537
+ Specifies the root directory of input files.
538
+
539
+ Use to control the output directory structure with `--outDir`.
540
+ */
541
+ rootDir?: string;
542
+
543
+ /**
544
+ Unconditionally emit imports for unresolved files.
545
+
546
+ @default false
547
+ */
548
+ isolatedModules?: boolean;
549
+
550
+ /**
551
+ Generates corresponding '.map' file.
552
+
553
+ @default false
554
+ */
555
+ sourceMap?: boolean;
556
+
557
+ /**
558
+ Specifies the location where debugger should locate TypeScript files instead of source locations.
559
+ */
560
+ sourceRoot?: string;
561
+
562
+ /**
563
+ Suppress excess property checks for object literals.
564
+
565
+ @default false
566
+ */
567
+ suppressExcessPropertyErrors?: boolean;
568
+
569
+ /**
570
+ Suppress noImplicitAny errors for indexing objects lacking index signatures.
571
+
572
+ @default false
573
+ */
574
+ suppressImplicitAnyIndexErrors?: boolean;
575
+
576
+ /**
577
+ Do not emit declarations for code that has an `@internal` annotation.
578
+ */
579
+ stripInternal?: boolean;
580
+
581
+ /**
582
+ Specify ECMAScript target version.
583
+
584
+ @default 'es3'
585
+ */
586
+ target?: CompilerOptions.Target;
587
+
588
+ /**
589
+ Default catch clause variables as `unknown` instead of `any`.
590
+
591
+ Requires TypeScript version 4.4 or later.
592
+
593
+ @default false
594
+ */
595
+ useUnknownInCatchVariables?: boolean;
596
+
597
+ /**
598
+ Watch input files.
599
+
600
+ @default false
601
+ @deprecated Use watchOptions instead.
602
+ */
603
+ watch?: boolean;
604
+
605
+ /**
606
+ Specify the polling strategy to use when the system runs out of or doesn't support native file watchers.
607
+
608
+ Requires TypeScript version 3.8 or later.
609
+
610
+ @deprecated Use watchOptions.fallbackPolling instead.
611
+ */
612
+ fallbackPolling?: CompilerOptions.FallbackPolling;
613
+
614
+ /**
615
+ Specify the strategy for watching directories under systems that lack recursive file-watching functionality.
616
+
617
+ Requires TypeScript version 3.8 or later.
618
+
619
+ @default 'useFsEvents'
620
+ @deprecated Use watchOptions.watchDirectory instead.
621
+ */
622
+ watchDirectory?: CompilerOptions.WatchDirectory;
623
+
624
+ /**
625
+ Specify the strategy for watching individual files.
626
+
627
+ Requires TypeScript version 3.8 or later.
628
+
629
+ @default 'useFsEvents'
630
+ @deprecated Use watchOptions.watchFile instead.
631
+ */
632
+ watchFile?: CompilerOptions.WatchFile;
633
+
634
+ /**
635
+ Enables experimental support for ES7 decorators.
636
+
637
+ @default false
638
+ */
639
+ experimentalDecorators?: boolean;
640
+
641
+ /**
642
+ Emit design-type metadata for decorated declarations in source.
643
+
644
+ @default false
645
+ */
646
+ emitDecoratorMetadata?: boolean;
647
+
648
+ /**
649
+ Do not report errors on unused labels.
650
+
651
+ @default false
652
+ */
653
+ allowUnusedLabels?: boolean;
654
+
655
+ /**
656
+ Report error when not all code paths in function return a value.
657
+
658
+ @default false
659
+ */
660
+ noImplicitReturns?: boolean;
661
+
662
+ /**
663
+ Add `undefined` to a type when accessed using an index.
664
+
665
+ Requires TypeScript version 4.1 or later.
666
+
667
+ @default false
668
+ */
669
+ noUncheckedIndexedAccess?: boolean;
670
+
671
+ /**
672
+ Report errors for fallthrough cases in switch statement.
673
+
674
+ @default false
675
+ */
676
+ noFallthroughCasesInSwitch?: boolean;
677
+
678
+ /**
679
+ Ensure overriding members in derived classes are marked with an override modifier.
680
+
681
+ @default false
682
+ */
683
+ noImplicitOverride?: boolean;
684
+
685
+ /**
686
+ Do not report errors on unreachable code.
687
+
688
+ @default false
689
+ */
690
+ allowUnreachableCode?: boolean;
691
+
692
+ /**
693
+ Disallow inconsistently-cased references to the same file.
694
+
695
+ @default false
696
+ */
697
+ forceConsistentCasingInFileNames?: boolean;
698
+
699
+ /**
700
+ Emit a v8 CPU profile of the compiler run for debugging.
701
+
702
+ Requires TypeScript version 3.7 or later.
703
+
704
+ @default 'profile.cpuprofile'
705
+ */
706
+ generateCpuProfile?: string;
707
+
708
+ /**
709
+ Base directory to resolve non-relative module names.
710
+ */
711
+ baseUrl?: string;
712
+
713
+ /**
714
+ Specify path mapping to be computed relative to baseUrl option.
715
+ */
716
+ paths?: Record<string, string[]>;
717
+
718
+ /**
719
+ List of TypeScript language server plugins to load.
720
+
721
+ Requires TypeScript version 2.3 or later.
722
+ */
723
+ plugins?: CompilerOptions.Plugin[];
724
+
725
+ /**
726
+ Specify list of root directories to be used when resolving modules.
727
+ */
728
+ rootDirs?: string[];
729
+
730
+ /**
731
+ Specify list of directories for type definition files to be included.
732
+
733
+ Requires TypeScript version 2.0 or later.
734
+ */
735
+ typeRoots?: string[];
736
+
737
+ /**
738
+ Type declaration files to be included in compilation.
739
+
740
+ Requires TypeScript version 2.0 or later.
741
+ */
742
+ types?: string[];
743
+
744
+ /**
745
+ Enable tracing of the name resolution process.
746
+
747
+ @default false
748
+ */
749
+ traceResolution?: boolean;
750
+
751
+ /**
752
+ Allow javascript files to be compiled.
753
+
754
+ @default false
755
+ */
756
+ allowJs?: boolean;
757
+
758
+ /**
759
+ Do not truncate error messages.
760
+
761
+ @default false
762
+ */
763
+ noErrorTruncation?: boolean;
764
+
765
+ /**
766
+ Allow default imports from modules with no default export. This does not affect code emit, just typechecking.
767
+
768
+ @default module === 'system' || esModuleInterop
769
+ */
770
+ allowSyntheticDefaultImports?: boolean;
771
+
772
+ /**
773
+ Do not emit `'use strict'` directives in module output.
774
+
775
+ @default false
776
+ */
777
+ noImplicitUseStrict?: boolean;
778
+
779
+ /**
780
+ Enable to list all emitted files.
781
+
782
+ Requires TypeScript version 2.0 or later.
783
+
784
+ @default false
785
+ */
786
+ listEmittedFiles?: boolean;
787
+
788
+ /**
789
+ Disable size limit for JavaScript project.
790
+
791
+ Requires TypeScript version 2.0 or later.
792
+
793
+ @default false
794
+ */
795
+ disableSizeLimit?: boolean;
796
+
797
+ /**
798
+ List of library files to be included in the compilation.
799
+
800
+ Requires TypeScript version 2.0 or later.
801
+ */
802
+ lib?: CompilerOptions.Lib[];
803
+
804
+ /**
805
+ Enable strict null checks.
806
+
807
+ Requires TypeScript version 2.0 or later.
808
+
809
+ @default false
810
+ */
811
+ strictNullChecks?: boolean;
812
+
813
+ /**
814
+ The maximum dependency depth to search under `node_modules` and load JavaScript files. Only applicable with `--allowJs`.
815
+
816
+ @default 0
817
+ */
818
+ maxNodeModuleJsDepth?: number;
819
+
820
+ /**
821
+ Import emit helpers (e.g. `__extends`, `__rest`, etc..) from tslib.
822
+
823
+ Requires TypeScript version 2.1 or later.
824
+
825
+ @default false
826
+ */
827
+ importHelpers?: boolean;
828
+
829
+ /**
830
+ Specify emit/checking behavior for imports that are only used for types.
831
+
832
+ @default 'remove'
833
+ */
834
+ importsNotUsedAsValues?: CompilerOptions.ImportsNotUsedAsValues;
835
+
836
+ /**
837
+ Parse in strict mode and emit `'use strict'` for each source file.
838
+
839
+ Requires TypeScript version 2.1 or later.
840
+
841
+ @default false
842
+ */
843
+ alwaysStrict?: boolean;
844
+
845
+ /**
846
+ Enable all strict type checking options.
847
+
848
+ Requires TypeScript version 2.3 or later.
849
+
850
+ @default false
851
+ */
852
+ strict?: boolean;
853
+
854
+ /**
855
+ Enable stricter checking of of the `bind`, `call`, and `apply` methods on functions.
856
+
857
+ @default false
858
+ */
859
+ strictBindCallApply?: boolean;
860
+
861
+ /**
862
+ Provide full support for iterables in `for-of`, spread, and destructuring when targeting `ES5` or `ES3`.
863
+
864
+ Requires TypeScript version 2.3 or later.
865
+
866
+ @default false
867
+ */
868
+ downlevelIteration?: boolean;
869
+
870
+ /**
871
+ Report errors in `.js` files.
872
+
873
+ Requires TypeScript version 2.3 or later.
874
+
875
+ @default false
876
+ */
877
+ checkJs?: boolean;
878
+
879
+ /**
880
+ Disable bivariant parameter checking for function types.
881
+
882
+ Requires TypeScript version 2.6 or later.
883
+
884
+ @default false
885
+ */
886
+ strictFunctionTypes?: boolean;
887
+
888
+ /**
889
+ Ensure non-undefined class properties are initialized in the constructor.
890
+
891
+ Requires TypeScript version 2.7 or later.
892
+
893
+ @default false
894
+ */
895
+ strictPropertyInitialization?: boolean;
896
+
897
+ /**
898
+ Emit `__importStar` and `__importDefault` helpers for runtime Babel ecosystem compatibility and enable `--allowSyntheticDefaultImports` for typesystem compatibility.
899
+
900
+ Requires TypeScript version 2.7 or later.
901
+
902
+ @default false
903
+ */
904
+ esModuleInterop?: boolean;
905
+
906
+ /**
907
+ Allow accessing UMD globals from modules.
908
+
909
+ @default false
910
+ */
911
+ allowUmdGlobalAccess?: boolean;
912
+
913
+ /**
914
+ Resolve `keyof` to string valued property names only (no numbers or symbols).
915
+
916
+ Requires TypeScript version 2.9 or later.
917
+
918
+ @default false
919
+ */
920
+ keyofStringsOnly?: boolean;
921
+
922
+ /**
923
+ Emit ECMAScript standard class fields.
924
+
925
+ Requires TypeScript version 3.7 or later.
926
+
927
+ @default false
928
+ */
929
+ useDefineForClassFields?: boolean;
930
+
931
+ /**
932
+ Generates a sourcemap for each corresponding `.d.ts` file.
933
+
934
+ Requires TypeScript version 2.9 or later.
935
+
936
+ @default false
937
+ */
938
+ declarationMap?: boolean;
939
+
940
+ /**
941
+ Include modules imported with `.json` extension.
942
+
943
+ Requires TypeScript version 2.9 or later.
944
+
945
+ @default false
946
+ */
947
+ resolveJsonModule?: boolean;
948
+
949
+ /**
950
+ Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it.
951
+
952
+ Requires TypeScript version 3.8 or later.
953
+
954
+ @default false
955
+ */
956
+ assumeChangesOnlyAffectDirectDependencies?: boolean;
957
+
958
+ /**
959
+ Output more detailed compiler performance information after building.
960
+
961
+ @default false
962
+ */
963
+ extendedDiagnostics?: boolean;
964
+
965
+ /**
966
+ Print names of files that are part of the compilation and then stop processing.
967
+
968
+ @default false
969
+ */
970
+ listFilesOnly?: boolean;
971
+
972
+ /**
973
+ Disable preferring source files instead of declaration files when referencing composite projects.
974
+
975
+ @default true if composite, false otherwise
976
+ */
977
+ disableSourceOfProjectReferenceRedirect?: boolean;
978
+
979
+ /**
980
+ Opt a project out of multi-project reference checking when editing.
981
+
982
+ Requires TypeScript version 3.8 or later.
983
+
984
+ @default false
985
+ */
986
+ disableSolutionSearching?: boolean;
987
+
988
+ /**
989
+ Print names of files which TypeScript sees as a part of your project and the reason they are part of the compilation.
990
+
991
+ Requires TypeScript version 4.2 or later.
992
+
993
+ @default false
994
+ */
995
+ explainFiles?: boolean;
996
+ }
997
+
998
+ namespace WatchOptions {
999
+ export type WatchFileKind =
1000
+ | 'FixedPollingInterval'
1001
+ | 'PriorityPollingInterval'
1002
+ | 'DynamicPriorityPolling'
1003
+ | 'FixedChunkSizePolling'
1004
+ | 'UseFsEvents'
1005
+ | 'UseFsEventsOnParentDirectory';
1006
+
1007
+ export type WatchDirectoryKind =
1008
+ | 'UseFsEvents'
1009
+ | 'FixedPollingInterval'
1010
+ | 'DynamicPriorityPolling'
1011
+ | 'FixedChunkSizePolling';
1012
+
1013
+ export type PollingWatchKind =
1014
+ | 'FixedInterval'
1015
+ | 'PriorityInterval'
1016
+ | 'DynamicPriority'
1017
+ | 'FixedChunkSize';
1018
+ }
1019
+
1020
+ export interface WatchOptions {
1021
+
1022
+ /**
1023
+ Specify the strategy for watching individual files.
1024
+
1025
+ Requires TypeScript version 3.8 or later.
1026
+
1027
+ @default 'UseFsEvents'
1028
+ */
1029
+ watchFile?: WatchOptions.WatchFileKind | Lowercase<WatchOptions.WatchFileKind>;
1030
+
1031
+ /**
1032
+ Specify the strategy for watching directories under systems that lack recursive file-watching functionality.
1033
+
1034
+ Requires TypeScript version 3.8 or later.
1035
+
1036
+ @default 'UseFsEvents'
1037
+ */
1038
+ watchDirectory?: WatchOptions.WatchDirectoryKind | Lowercase<WatchOptions.WatchDirectoryKind>;
1039
+
1040
+ /**
1041
+ Specify the polling strategy to use when the system runs out of or doesn't support native file watchers.
1042
+
1043
+ Requires TypeScript version 3.8 or later.
1044
+ */
1045
+ fallbackPolling?: WatchOptions.PollingWatchKind | Lowercase<WatchOptions.PollingWatchKind>;
1046
+
1047
+ /**
1048
+ Enable synchronous updates on directory watchers for platforms that don't support recursive watching natively.
1049
+ */
1050
+ synchronousWatchDirectory?: boolean;
1051
+
1052
+ /**
1053
+ Specifies a list of directories to exclude from watch
1054
+ */
1055
+ excludeDirectories?: string[];
1056
+
1057
+ /**
1058
+ Specifies a list of files to exclude from watch
1059
+ */
1060
+ excludeFiles?: string[];
1061
+ }
1062
+
1063
+ /**
1064
+ Auto type (.d.ts) acquisition options for this project.
1065
+
1066
+ Requires TypeScript version 2.1 or later.
1067
+ */
1068
+ export interface TypeAcquisition {
1069
+ /**
1070
+ Enable auto type acquisition.
1071
+ */
1072
+ enable?: boolean;
1073
+
1074
+ /**
1075
+ Specifies a list of type declarations to be included in auto type acquisition. For example, `['jquery', 'lodash']`.
1076
+ */
1077
+ include?: string[];
1078
+
1079
+ /**
1080
+ Specifies a list of type declarations to be excluded from auto type acquisition. For example, `['jquery', 'lodash']`.
1081
+ */
1082
+ exclude?: string[];
1083
+ }
1084
+
1085
+ export interface References {
1086
+ /**
1087
+ A normalized path on disk.
1088
+ */
1089
+ path: string;
1090
+
1091
+ /**
1092
+ The path as the user originally wrote it.
1093
+ */
1094
+ originalPath?: string;
1095
+
1096
+ /**
1097
+ True if the output of this reference should be prepended to the output of this project.
1098
+
1099
+ Only valid for `--outFile` compilations.
1100
+ */
1101
+ prepend?: boolean;
1102
+
1103
+ /**
1104
+ True if it is intended that this reference form a circularity.
1105
+ */
1106
+ circular?: boolean;
1107
+ }
1108
+ }
1109
+
1110
+ /**
1111
+ Type for [TypeScript's `tsconfig.json` file](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) (TypeScript 3.7).
1112
+
1113
+ @category File
1114
+ */
1115
+ export interface TsConfigJson {
1116
+ /**
1117
+ Instructs the TypeScript compiler how to compile `.ts` files.
1118
+ */
1119
+ compilerOptions?: TsConfigJson.CompilerOptions;
1120
+
1121
+ /**
1122
+ Instructs the TypeScript compiler how to watch files.
1123
+ */
1124
+ watchOptions?: TsConfigJson.WatchOptions;
1125
+
1126
+ /**
1127
+ Auto type (.d.ts) acquisition options for this project.
1128
+
1129
+ Requires TypeScript version 2.1 or later.
1130
+ */
1131
+ typeAcquisition?: TsConfigJson.TypeAcquisition;
1132
+
1133
+ /**
1134
+ Enable Compile-on-Save for this project.
1135
+ */
1136
+ compileOnSave?: boolean;
1137
+
1138
+ /**
1139
+ Path to base configuration file to inherit from.
1140
+
1141
+ Requires TypeScript version 2.1 or later.
1142
+ */
1143
+ extends?: string;
1144
+
1145
+ /**
1146
+ 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.
1147
+ */
1148
+ files?: string[];
1149
+
1150
+ /**
1151
+ 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.
1152
+
1153
+ Glob patterns require TypeScript version 2.0 or later.
1154
+ */
1155
+ exclude?: string[];
1156
+
1157
+ /**
1158
+ Specifies a list of glob patterns that match files to be included in compilation.
1159
+
1160
+ 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`.
1161
+
1162
+ Requires TypeScript version 2.0 or later.
1163
+ */
1164
+ include?: string[];
1165
+
1166
+ /**
1167
+ Referenced projects.
1168
+
1169
+ Requires TypeScript version 3.0 or later.
1170
+ */
1171
+ references?: TsConfigJson.References[];
1172
+ }