@aryaemami59/tsconfig 0.0.6 → 0.0.8

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 (30) hide show
  1. package/README.md +1 -1
  2. package/package.json +75 -143
  3. package/scripts/build.ts +192 -182
  4. package/scripts/typeHelpers.ts +17 -11
  5. package/scripts/types.ts +302 -157
  6. package/src/bundler/commonjs/tsconfig.json +8 -0
  7. package/src/bundler/commonjs/with-js/tsconfig.json +9 -0
  8. package/src/bundler/esnext/tsconfig.json +1 -1
  9. package/src/bundler/preserve/tsconfig.json +1 -1
  10. package/src/create-react-app/tsconfig.json +2 -2
  11. package/src/node/commonjs/tsconfig.json +30 -0
  12. package/src/node/commonjs/with-js/tsconfig.json +9 -0
  13. package/src/node/{with-js → esnext/with-js}/tsconfig.json +1 -1
  14. package/src/node-10/commonjs/tsconfig.json +8 -0
  15. package/src/node-10/commonjs/with-js/tsconfig.json +9 -0
  16. package/src/node-10/{tsconfig.json → esnext/tsconfig.json} +1 -1
  17. package/src/node-10/{with-js → esnext/with-js}/tsconfig.json +1 -1
  18. package/src/node-16/{tsconfig.json → node16/tsconfig.json} +1 -1
  19. package/src/node-16/{with-js → node16/with-js}/tsconfig.json +1 -1
  20. package/src/node-16/node18/tsconfig.json +9 -0
  21. package/src/node-16/node18/with-js/tsconfig.json +9 -0
  22. package/src/node-16/node20/tsconfig.json +9 -0
  23. package/src/node-16/node20/with-js/tsconfig.json +9 -0
  24. package/src/node-next/node18/tsconfig.json +9 -0
  25. package/src/node-next/node18/with-js/tsconfig.json +9 -0
  26. package/src/node-next/node20/tsconfig.json +9 -0
  27. package/src/node-next/node20/with-js/tsconfig.json +9 -0
  28. package/src/node-next/{tsconfig.json → nodenext/tsconfig.json} +1 -1
  29. package/src/node-next/{with-js → nodenext/with-js}/tsconfig.json +1 -1
  30. /package/src/node/{tsconfig.json → esnext/tsconfig.json} +0 -0
package/scripts/types.ts CHANGED
@@ -54,6 +54,9 @@ export type JSX =
54
54
  | 'react'
55
55
 
56
56
  export type Module =
57
+ /**
58
+ * @deprecated Since v6.0.0.
59
+ */
57
60
  | 'AMD'
58
61
  | 'CommonJS'
59
62
  | 'ES2015'
@@ -65,33 +68,52 @@ export type Module =
65
68
  | 'Node18'
66
69
  | 'Node20'
67
70
  | 'NodeNext'
71
+ /**
72
+ * @deprecated Since v6.0.0.
73
+ */
68
74
  | 'None'
69
75
  | 'Preserve'
76
+ /**
77
+ * @deprecated Since v6.0.0.
78
+ */
70
79
  | 'System'
80
+ /**
81
+ * @deprecated Since v6.0.0.
82
+ */
71
83
  | 'UMD'
72
- // Lowercase alternatives
73
- | 'amd'
74
- | 'commonjs'
75
- | 'es2015'
76
- | 'es2020'
77
- | 'es2022'
78
- | 'es6'
79
- | 'esnext'
80
- | 'node16'
81
- | 'node18'
82
- | 'node20'
83
- | 'nodenext'
84
- | 'none'
85
- | 'preserve'
86
- | 'system'
87
- | 'umd'
88
-
89
- export type NewLine =
90
- | 'CRLF'
91
- | 'LF'
92
- // Lowercase alternatives
93
- | 'crlf'
94
- | 'lf'
84
+ // Lowercase alternatives
85
+ // /**
86
+ // * @deprecated Since v6.0.0.
87
+ // */
88
+ // | 'amd'
89
+ // | 'commonjs'
90
+ // | 'es2015'
91
+ // | 'es2020'
92
+ // | 'es2022'
93
+ // | 'es6'
94
+ // | 'esnext'
95
+ // | 'node16'
96
+ // | 'node18'
97
+ // | 'node20'
98
+ // | 'nodenext'
99
+ // /**
100
+ // * @deprecated Since v6.0.0.
101
+ // */
102
+ // | 'none'
103
+ // | 'preserve'
104
+ // /**
105
+ // * @deprecated Since v6.0.0.
106
+ // */
107
+ // | 'system'
108
+ // /**
109
+ // * @deprecated Since v6.0.0.
110
+ // */
111
+ // | 'umd'
112
+
113
+ export type NewLine = 'CRLF' | 'LF'
114
+ // Lowercase alternatives
115
+ // | 'crlf'
116
+ // | 'lf'
95
117
 
96
118
  export type Target =
97
119
  | 'ES2015'
@@ -104,25 +126,39 @@ export type Target =
104
126
  | 'ES2022'
105
127
  | 'ES2023'
106
128
  | 'ES2024'
129
+ /**
130
+ * @since v6.0.0
131
+ */
132
+ | 'ES2025'
107
133
  | 'ES3'
134
+ /**
135
+ * @deprecated Since v6.0.0
136
+ */
108
137
  | 'ES5'
109
138
  | 'ES6'
110
139
  | 'ESNext'
111
- // Lowercase alternatives
112
- | 'es2015'
113
- | 'es2016'
114
- | 'es2017'
115
- | 'es2018'
116
- | 'es2019'
117
- | 'es2020'
118
- | 'es2021'
119
- | 'es2022'
120
- | 'es2023'
121
- | 'es2024'
122
- | 'es3'
123
- | 'es5'
124
- | 'es6'
125
- | 'esnext'
140
+ // Lowercase alternatives
141
+ // | 'es2015'
142
+ // | 'es2016'
143
+ // | 'es2017'
144
+ // | 'es2018'
145
+ // | 'es2019'
146
+ // | 'es2020'
147
+ // | 'es2021'
148
+ // | 'es2022'
149
+ // | 'es2023'
150
+ // | 'es2024'
151
+ // /**
152
+ // * @since v6.0.0
153
+ // */
154
+ // | 'es2025'
155
+ // | 'es3'
156
+ // /**
157
+ // * @deprecated Since v6.0.0
158
+ // */
159
+ // | 'es5'
160
+ // | 'es6'
161
+ // | 'esnext'
126
162
 
127
163
  export type Lib =
128
164
  | 'Decorators.Legacy'
@@ -141,6 +177,7 @@ export type Lib =
141
177
  | 'ES2015.Symbol'
142
178
  | 'ES2015'
143
179
  | 'ES2016.Array.Include'
180
+ | 'ES2016.Intl'
144
181
  | 'ES2016'
145
182
  | 'ES2017.ArrayBuffer'
146
183
  | 'ES2017.Date'
@@ -181,7 +218,7 @@ export type Lib =
181
218
  | 'ES2022.Intl'
182
219
  | 'ES2022.Object'
183
220
  | 'ES2022.RegExp'
184
- | 'ES2022.SharedMemory'
221
+ // | 'ES2022.SharedMemory'
185
222
  | 'ES2022.String'
186
223
  | 'ES2022'
187
224
  | 'ES2023.Array'
@@ -196,6 +233,34 @@ export type Lib =
196
233
  | 'ES2024.SharedMemory'
197
234
  | 'ES2024.String'
198
235
  | 'ES2024'
236
+ /**
237
+ * @since v6.0.0
238
+ */
239
+ | 'ES2025.Collection'
240
+ /**
241
+ * @since v6.0.0
242
+ */
243
+ | 'ES2025.Float16'
244
+ /**
245
+ * @since v6.0.0
246
+ */
247
+ | 'ES2025.Intl'
248
+ /**
249
+ * @since v6.0.0
250
+ */
251
+ | 'ES2025.Iterator'
252
+ /**
253
+ * @since v6.0.0
254
+ */
255
+ | 'ES2025.Promise'
256
+ /**
257
+ * @since v6.0.0
258
+ */
259
+ | 'ES2025.Regexp'
260
+ /**
261
+ * @since v6.0.0
262
+ */
263
+ | 'ES2025'
199
264
  | 'ES5'
200
265
  | 'ES6'
201
266
  | 'ES7'
@@ -203,16 +268,21 @@ export type Lib =
203
268
  | 'ESNext.AsyncIterable'
204
269
  | 'ESNext.BigInt'
205
270
  | 'ESNext.Collection'
271
+ | 'ESNext.Date'
206
272
  | 'ESNext.Decorators'
207
273
  | 'ESNext.Disposable'
208
274
  | 'ESNext.Error'
275
+ | 'ESNext.Float16'
209
276
  | 'ESNext.Intl'
210
277
  | 'ESNext.Iterator'
211
278
  | 'ESNext.Object'
212
279
  | 'ESNext.Promise'
213
280
  | 'ESNext.Regexp'
281
+ | 'ESNext.SharedMemory'
214
282
  | 'ESNext.String'
215
283
  | 'ESNext.Symbol'
284
+ | 'ESNext.Temporal'
285
+ | 'ESNext.TypedArrays'
216
286
  | 'ESNext.WeakRef'
217
287
  | 'ESNext'
218
288
  | 'ScriptHost'
@@ -220,102 +290,136 @@ export type Lib =
220
290
  | 'WebWorker.ImportScripts'
221
291
  | 'WebWorker.Iterable'
222
292
  | 'WebWorker'
223
- // Lowercase alternatives
224
- | 'decorators.legacy'
225
- | 'decorators'
226
- | 'dom.asynciterable'
227
- | 'dom.iterable'
228
- | 'dom'
229
- | 'es2015.collection'
230
- | 'es2015.core'
231
- | 'es2015.generator'
232
- | 'es2015.iterable'
233
- | 'es2015.promise'
234
- | 'es2015.proxy'
235
- | 'es2015.reflect'
236
- | 'es2015.symbol.wellknown'
237
- | 'es2015.symbol'
238
- | 'es2015'
239
- | 'es2016.array.include'
240
- | 'es2016'
241
- | 'es2017.arraybuffer'
242
- | 'es2017.date'
243
- | 'es2017.intl'
244
- | 'es2017.object'
245
- | 'es2017.sharedmemory'
246
- | 'es2017.string'
247
- | 'es2017.typedarrays'
248
- | 'es2017'
249
- | 'es2018.asyncgenerator'
250
- | 'es2018.asynciterable'
251
- | 'es2018.intl'
252
- | 'es2018.promise'
253
- | 'es2018.regexp'
254
- | 'es2018'
255
- | 'es2019.array'
256
- | 'es2019.intl'
257
- | 'es2019.object'
258
- | 'es2019.string'
259
- | 'es2019.symbol'
260
- | 'es2019'
261
- | 'es2020.bigint'
262
- | 'es2020.date'
263
- | 'es2020.intl'
264
- | 'es2020.number'
265
- | 'es2020.promise'
266
- | 'es2020.sharedmemory'
267
- | 'es2020.string'
268
- | 'es2020.symbol.wellknown'
269
- | 'es2020'
270
- | 'es2021.intl'
271
- | 'es2021.promise'
272
- | 'es2021.string'
273
- | 'es2021.weakref'
274
- | 'es2021'
275
- | 'es2022.array'
276
- | 'es2022.error'
277
- | 'es2022.intl'
278
- | 'es2022.object'
279
- | 'es2022.regexp'
280
- | 'es2022.sharedmemory'
281
- | 'es2022.string'
282
- | 'es2022'
283
- | 'es2023.array'
284
- | 'es2023.collection'
285
- | 'es2023.intl'
286
- | 'es2023'
287
- | 'es2024.arraybuffer'
288
- | 'es2024.collection'
289
- | 'es2024.object'
290
- | 'es2024.promise'
291
- | 'es2024.regexp'
292
- | 'es2024.sharedmemory'
293
- | 'es2024.string'
294
- | 'es2024'
295
- | 'es5'
296
- | 'es6'
297
- | 'es7'
298
- | 'esnext.array'
299
- | 'esnext.asynciterable'
300
- | 'esnext.bigint'
301
- | 'esnext.collection'
302
- | 'esnext.decorators'
303
- | 'esnext.disposable'
304
- | 'esnext.error'
305
- | 'esnext.intl'
306
- | 'esnext.iterator'
307
- | 'esnext.object'
308
- | 'esnext.promise'
309
- | 'esnext.regexp'
310
- | 'esnext.string'
311
- | 'esnext.symbol'
312
- | 'esnext.weakref'
313
- | 'esnext'
314
- | 'scripthost'
315
- | 'webworker.asynciterable'
316
- | 'webworker.importscripts'
317
- | 'webworker.iterable'
318
- | 'webworker'
293
+ // Lowercase alternatives
294
+ // | 'decorators.legacy'
295
+ // | 'decorators'
296
+ // | 'dom.asynciterable'
297
+ // | 'dom.iterable'
298
+ // | 'dom'
299
+ // | 'es2015.collection'
300
+ // | 'es2015.core'
301
+ // | 'es2015.generator'
302
+ // | 'es2015.iterable'
303
+ // | 'es2015.promise'
304
+ // | 'es2015.proxy'
305
+ // | 'es2015.reflect'
306
+ // | 'es2015.symbol.wellknown'
307
+ // | 'es2015.symbol'
308
+ // | 'es2015'
309
+ // | 'es2016.array.include'
310
+ // | 'es2016.intl'
311
+ // | 'es2016'
312
+ // | 'es2017.arraybuffer'
313
+ // | 'es2017.date'
314
+ // | 'es2017.intl'
315
+ // | 'es2017.object'
316
+ // | 'es2017.sharedmemory'
317
+ // | 'es2017.string'
318
+ // | 'es2017.typedarrays'
319
+ // | 'es2017'
320
+ // | 'es2018.asyncgenerator'
321
+ // | 'es2018.asynciterable'
322
+ // | 'es2018.intl'
323
+ // | 'es2018.promise'
324
+ // | 'es2018.regexp'
325
+ // | 'es2018'
326
+ // | 'es2019.array'
327
+ // | 'es2019.intl'
328
+ // | 'es2019.object'
329
+ // | 'es2019.string'
330
+ // | 'es2019.symbol'
331
+ // | 'es2019'
332
+ // | 'es2020.bigint'
333
+ // | 'es2020.date'
334
+ // | 'es2020.intl'
335
+ // | 'es2020.number'
336
+ // | 'es2020.promise'
337
+ // | 'es2020.sharedmemory'
338
+ // | 'es2020.string'
339
+ // | 'es2020.symbol.wellknown'
340
+ // | 'es2020'
341
+ // | 'es2021.intl'
342
+ // | 'es2021.promise'
343
+ // | 'es2021.string'
344
+ // | 'es2021.weakref'
345
+ // | 'es2021'
346
+ // | 'es2022.array'
347
+ // | 'es2022.error'
348
+ // | 'es2022.intl'
349
+ // | 'es2022.object'
350
+ // | 'es2022.regexp'
351
+ // // | 'es2022.sharedmemory'
352
+ // | 'es2022.string'
353
+ // | 'es2022'
354
+ // | 'es2023.array'
355
+ // | 'es2023.collection'
356
+ // | 'es2023.intl'
357
+ // | 'es2023'
358
+ // | 'es2024.arraybuffer'
359
+ // | 'es2024.collection'
360
+ // | 'es2024.object'
361
+ // | 'es2024.promise'
362
+ // | 'es2024.regexp'
363
+ // | 'es2024.sharedmemory'
364
+ // | 'es2024.string'
365
+ // | 'es2024'
366
+ // /**
367
+ // * @since v6.0.0
368
+ // */
369
+ // | 'es2025.collection'
370
+ // /**
371
+ // * @since v6.0.0
372
+ // */
373
+ // | 'es2025.float16'
374
+ // /**
375
+ // * @since v6.0.0
376
+ // */
377
+ // | 'es2025.intl'
378
+ // /**
379
+ // * @since v6.0.0
380
+ // */
381
+ // | 'es2025.iterator'
382
+ // /**
383
+ // * @since v6.0.0
384
+ // */
385
+ // | 'es2025.promise'
386
+ // /**
387
+ // * @since v6.0.0
388
+ // */
389
+ // | 'es2025.regexp'
390
+ // /**
391
+ // * @since v6.0.0
392
+ // */
393
+ // | 'es2025'
394
+ // | 'es5'
395
+ // | 'es6'
396
+ // | 'es7'
397
+ // | 'esnext.array'
398
+ // | 'esnext.asynciterable'
399
+ // | 'esnext.bigint'
400
+ // | 'esnext.collection'
401
+ // | 'esnext.date'
402
+ // | 'esnext.decorators'
403
+ // | 'esnext.disposable'
404
+ // | 'esnext.error'
405
+ // | 'esnext.float16'
406
+ // | 'esnext.intl'
407
+ // | 'esnext.iterator'
408
+ // | 'esnext.object'
409
+ // | 'esnext.promise'
410
+ // | 'esnext.regexp'
411
+ // | 'esnext.sharedmemory'
412
+ // | 'esnext.string'
413
+ // | 'esnext.symbol'
414
+ // | 'esnext.temporal'
415
+ // | 'esnext.typedarrays'
416
+ // | 'esnext.weakref'
417
+ // | 'esnext'
418
+ // | 'scripthost'
419
+ // | 'webworker.asynciterable'
420
+ // | 'webworker.importscripts'
421
+ // | 'webworker.iterable'
422
+ // | 'webworker'
319
423
 
320
424
  export type Plugin = {
321
425
  /**
@@ -350,22 +454,34 @@ export type WatchFile =
350
454
  | 'useFsEventsOnParentDirectory'
351
455
 
352
456
  export type ModuleResolution =
353
- | 'bundler'
354
- | 'classic'
355
- /**
356
- * @deprecated since v5.0.0 - Use `'node10'` instead.
357
- */
358
- | 'node'
359
- | 'node10'
360
- | 'node16'
361
- | 'nodenext'
457
+ // | 'bundler'
458
+ // /**
459
+ // * @deprecated Since v6.0.0.
460
+ // */
461
+ // | 'classic'
462
+ // /**
463
+ // * @deprecated Since v5.0.0 - Use `'node10'` instead.
464
+ // */
465
+ // | 'node'
466
+ // /**
467
+ // * @deprecated Since v6.0.0.
468
+ // */
469
+ // | 'node10'
470
+ // | 'node16'
471
+ // | 'nodenext'
362
472
  // Pascal-cased alternatives
363
473
  | 'Bundler'
474
+ /**
475
+ * @deprecated Since v6.0.0.
476
+ */
364
477
  | 'Classic'
365
478
  /**
366
- * @deprecated since v5.0.0 - Use `'node10'` instead.
479
+ * @deprecated Since v5.0.0 - Use `'node10'` instead.
367
480
  */
368
481
  | 'Node'
482
+ /**
483
+ * @deprecated Since v6.0.0.
484
+ */
369
485
  | 'Node10'
370
486
  | 'Node16'
371
487
  | 'NodeNext'
@@ -462,6 +578,7 @@ export type CompilerOptions = {
462
578
  * Base directory to resolve non-relative module names.
463
579
  *
464
580
  * @since v2.0.0
581
+ * @deprecated Since v6.0.0.
465
582
  */
466
583
  baseUrl?: string
467
584
 
@@ -568,6 +685,7 @@ export type CompilerOptions = {
568
685
  *
569
686
  * @since v2.3.0
570
687
  * @default false
688
+ * @deprecated Since v6.0.0.
571
689
  */
572
690
  downlevelIteration?: boolean
573
691
 
@@ -803,13 +921,15 @@ export type CompilerOptions = {
803
921
  *
804
922
  * @since v2.0.0
805
923
  */
806
- lib?: Lib[]
924
+ lib?: (Lib | Lowercase<Lib>)[]
807
925
 
808
926
  /**
809
927
  * Enable lib replacement.
928
+ * Prior to v6.0.0, this defaulted to **`true`**. Since v6.0.0, it defaults
929
+ * to **`false`**.
810
930
  *
811
931
  * @since v5.8.0
812
- * @default true
932
+ * @default false
813
933
  */
814
934
  libReplacement?: boolean
815
935
 
@@ -867,11 +987,13 @@ export type CompilerOptions = {
867
987
  *
868
988
  * Only `"AMD"` and `"System"` can be used in conjunction with `--outFile`.
869
989
  * `"ES6"` and `"ES2015"` values may be used when targeting `"ES5"` or lower.
990
+ * Since v6.0.0, this defaults to **`"esnext"`**. Prior to v6.0.0, it
991
+ * defaulted to **`["ES3", "ES5"].includes(target) ? "CommonJS" : "ES6"`**.
870
992
  *
871
993
  * @since v1.0.0
872
- * @default ["ES3", "ES5"].includes(target) ? "CommonJS" : "ES6"
994
+ * @default "esnext"
873
995
  */
874
- module?: Module
996
+ module?: Lowercase<Module> | Module
875
997
 
876
998
  /**
877
999
  * This setting controls how TypeScript determines whether a file is a
@@ -895,7 +1017,7 @@ export type CompilerOptions = {
895
1017
  * @since v1.6.0
896
1018
  * @default ["AMD", "System", "ES6"].includes(module) ? "classic" : "node"
897
1019
  */
898
- moduleResolution?: ModuleResolution
1020
+ moduleResolution?: Lowercase<ModuleResolution> | ModuleResolution
899
1021
 
900
1022
  /**
901
1023
  * List of file name suffixes to search when resolving a module.
@@ -912,7 +1034,7 @@ export type CompilerOptions = {
912
1034
  * @since v1.5.0
913
1035
  * @default "lf"
914
1036
  */
915
- newLine?: NewLine
1037
+ newLine?: Lowercase<NewLine> | NewLine
916
1038
 
917
1039
  /**
918
1040
  * Disable full export type checking
@@ -1050,9 +1172,11 @@ export type CompilerOptions = {
1050
1172
 
1051
1173
  /**
1052
1174
  * Report error if failed to find a source file for a side effect import.
1175
+ * Prior to v6.0.0, this defaulted to **`false`**. Since v6.0.0, it defaults
1176
+ * to **`true`**.
1053
1177
  *
1054
1178
  * @since v5.6.0
1055
- * @default false
1179
+ * @default true
1056
1180
  */
1057
1181
  noUncheckedSideEffectImports?: boolean
1058
1182
 
@@ -1092,6 +1216,7 @@ export type CompilerOptions = {
1092
1216
  * Concatenate and emit output to single file.
1093
1217
  *
1094
1218
  * @since v1.6.0
1219
+ * @deprecated Since v6.0.0.
1095
1220
  */
1096
1221
  outFile?: string
1097
1222
 
@@ -1208,9 +1333,10 @@ export type CompilerOptions = {
1208
1333
 
1209
1334
  /**
1210
1335
  * Specifies the root directory of input files. Use to control the output
1211
- * directory structure with `--outDir`.
1336
+ * directory structure with `--outDir`. Defaults to **`"."`** since v6.0.0.
1212
1337
  *
1213
1338
  * @since v1.5.0
1339
+ * @default "."
1214
1340
  */
1215
1341
  rootDir?: string
1216
1342
 
@@ -1253,11 +1379,25 @@ export type CompilerOptions = {
1253
1379
  */
1254
1380
  sourceRoot?: string
1255
1381
 
1382
+ /**
1383
+ * Controls whether emitted types and properties use a more stable ordering.
1384
+ * TypeScript currently assigns internal type IDs in encounter order and uses
1385
+ * them to sort union members. A similar process applies to properties. This
1386
+ * can lead to declaration output changing based on declaration order in ways
1387
+ * that may be surprising.
1388
+ *
1389
+ * @since v6.0.0
1390
+ * @default false
1391
+ */
1392
+ stableTypeOrdering?: boolean
1393
+
1256
1394
  /**
1257
1395
  * Enable all strict export type checking options.
1396
+ * Prior to v6.0.0, this defaulted to **`false`**. Since v6.0.0, it defaults
1397
+ * to **`true`**.
1258
1398
  *
1259
1399
  * @since v2.3.0
1260
- * @default false
1400
+ * @default true
1261
1401
  */
1262
1402
  strict?: boolean
1263
1403
 
@@ -1331,11 +1471,13 @@ export type CompilerOptions = {
1331
1471
 
1332
1472
  /**
1333
1473
  * Specify ECMAScript target version.
1474
+ * Before v6.0.0, this defaulted to **`"es3"`**. Since v6.0.0, it defaults to
1475
+ * the current year's ECMAScript version.
1334
1476
  *
1335
1477
  * @since v1.0.0
1336
- * @default "es3"
1478
+ * @default "es2025"
1337
1479
  */
1338
- target?: Target
1480
+ target?: Lowercase<Target> | Target
1339
1481
 
1340
1482
  /**
1341
1483
  * Enable tracing of the name resolution process.
@@ -1363,10 +1505,13 @@ export type CompilerOptions = {
1363
1505
 
1364
1506
  /**
1365
1507
  * Type declaration files to be included in compilation.
1508
+ * Since v6.0.0, this defaults to **`[]`**. To achieve the previous default
1509
+ * behavior, use **`["*"]`**.
1366
1510
  *
1367
1511
  * @since v2.0.0
1512
+ * @default []
1368
1513
  */
1369
- types?: string[]
1514
+ types?: StringLiteralUnion<'*' | 'node'>[]
1370
1515
 
1371
1516
  /**
1372
1517
  * Emit ECMAScript standard class fields.
@@ -0,0 +1,8 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "moduleResolution": "bundler"
5
+ },
6
+ "display": "TypeScript configuration with module set to `commonjs` and module resolution set to `bundler`",
7
+ "extends": "@aryaemami59/tsconfig/node/commonjs"
8
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "allowJs": true,
5
+ "checkJs": true
6
+ },
7
+ "display": "TypeScript configuration with module set to `commonjs`, module resolution set to `bundler`, and JavaScript files support enabled",
8
+ "extends": "@aryaemami59/tsconfig/bundler/commonjs"
9
+ }
@@ -4,5 +4,5 @@
4
4
  "moduleResolution": "bundler"
5
5
  },
6
6
  "display": "TypeScript configuration with module set to `esnext` and module resolution set to `bundler`",
7
- "extends": "@aryaemami59/tsconfig/node"
7
+ "extends": "@aryaemami59/tsconfig/node/esnext"
8
8
  }
@@ -5,5 +5,5 @@
5
5
  "moduleResolution": "bundler"
6
6
  },
7
7
  "display": "TypeScript configuration with module set to `preserve` and module resolution set to `bundler`",
8
- "extends": "@aryaemami59/tsconfig/node"
8
+ "extends": "@aryaemami59/tsconfig/node/esnext"
9
9
  }