@visulima/package 1.10.3 → 2.0.0

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