-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.mts
98 lines (86 loc) · 2.18 KB
/
tsconfig.mts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/**
* @file Tsconfig
* @module tsconfig-types/Tsconfig
*/
import type {
BuildOptions,
CompilerOptions,
JsonObject,
JsonValue,
ProjectReference,
TypeAcquisition,
WatchOptions
} from '@flex-development/tsconfig-types'
/**
* TypeScript configuration options.
*
* > As it concerns optional fields, `null` is used instead of `undefined`, even
* > in fields where `null` may not be allowed by TypeScript.\
* > This is to better support optional fields, as well as packages that may use
* > this definition. Such packages are expected to handle `null` values.
*
* This interface can be augmented to register custom fields. Field values are
* expected to be compatible with {@linkcode JsonValue}.
*
* @see https://www.typescriptlang.org/tsconfig
* @see {@linkcode JsonObject}
*
* @extends {JsonObject}
*/
interface Tsconfig extends JsonObject {
/**
* Build options.
*
* @see {@linkcode BuildOptions}
*/
buildOptions?: BuildOptions | null
/**
* Compile program on save.
*/
compileOnSave?: boolean | null
/**
* Compiler options.
*
* @see {@linkcode CompilerOptions}
*/
compilerOptions?: CompilerOptions | null
/**
* List of files to exclude in the program or glob patterns representing files
* to exclude.
*/
exclude?: string[] | null
/**
* Configuration file(s) to inherit from.
*
* @see https://devblogs.microsoft.com/typescript/announcing-typescript-5-0-beta/#supporting-multiple-configuration-files-in-extends
*/
extends?: string[] | string | false | null
/**
* Files to include in the program.
*/
files?: string[] | false | null
/**
* List of files to include in the program or glob patterns representing files
* to include.
*/
include?: string[] | null
/**
* List of project references.
*
* @see {@linkcode ProjectReference}
*/
references?: ProjectReference[] | false | null
/**
* Auto type-acquisition options.
*
* @see {@linkcode TypeAcquisition}
*/
typeAcquisition?: TypeAcquisition | null
/**
* File and directory watching options.
*
* @see {@linkcode WatchOptions}
*/
watchOptions?: WatchOptions | null
}
export type { Tsconfig as default }