-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtype-acquisition.mts
52 lines (44 loc) · 1.39 KB
/
type-acquisition.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
/**
* @file TypeAcquisition
* @module tsconfig-types/TypeAcquisition
*/
import type { CompilerOptionsValue } from '@flex-development/tsconfig-types'
/**
* Auto type-acquisition 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 CompilerOptionsValue}.
*
* @see https://www.typescriptlang.org/tsconfig#typeAcquisition
*/
interface TypeAcquisition {
[option: string]: CompilerOptionsValue
/**
* Prevent TypeScript from inferring types based on filenames.
*/
disableFilenameBasedTypeAcquisition?: boolean | null
/**
* Enable/disable auto type-acquisition.
*/
enable?: boolean | null
/**
* Enable/disable auto type-acquisition.
*
* @deprecated Use {@linkcode enable} instead.
*/
enableAutoDiscovery?: boolean | null
/**
* List of type declarations to be excluded from auto type-acquisition.
*/
exclude?: string[] | null
/**
* List of type declarations to be included in auto type-acquisition.
*/
include?: string[] | null
}
export type { TypeAcquisition as default }