@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.
- package/README.md +1 -1
- package/package.json +75 -143
- package/scripts/build.ts +192 -182
- package/scripts/typeHelpers.ts +17 -11
- package/scripts/types.ts +302 -157
- package/src/bundler/commonjs/tsconfig.json +8 -0
- package/src/bundler/commonjs/with-js/tsconfig.json +9 -0
- package/src/bundler/esnext/tsconfig.json +1 -1
- package/src/bundler/preserve/tsconfig.json +1 -1
- package/src/create-react-app/tsconfig.json +2 -2
- package/src/node/commonjs/tsconfig.json +30 -0
- package/src/node/commonjs/with-js/tsconfig.json +9 -0
- package/src/node/{with-js → esnext/with-js}/tsconfig.json +1 -1
- package/src/node-10/commonjs/tsconfig.json +8 -0
- package/src/node-10/commonjs/with-js/tsconfig.json +9 -0
- package/src/node-10/{tsconfig.json → esnext/tsconfig.json} +1 -1
- package/src/node-10/{with-js → esnext/with-js}/tsconfig.json +1 -1
- package/src/node-16/{tsconfig.json → node16/tsconfig.json} +1 -1
- package/src/node-16/{with-js → node16/with-js}/tsconfig.json +1 -1
- package/src/node-16/node18/tsconfig.json +9 -0
- package/src/node-16/node18/with-js/tsconfig.json +9 -0
- package/src/node-16/node20/tsconfig.json +9 -0
- package/src/node-16/node20/with-js/tsconfig.json +9 -0
- package/src/node-next/node18/tsconfig.json +9 -0
- package/src/node-next/node18/with-js/tsconfig.json +9 -0
- package/src/node-next/node20/tsconfig.json +9 -0
- package/src/node-next/node20/with-js/tsconfig.json +9 -0
- package/src/node-next/{tsconfig.json → nodenext/tsconfig.json} +1 -1
- package/src/node-next/{with-js → nodenext/with-js}/tsconfig.json +1 -1
- /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
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
| '
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 "
|
|
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?:
|
|
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
|
+
}
|