-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.d.ts
120 lines (114 loc) · 2.34 KB
/
types.d.ts
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
// The following content is copied from: https://github.com/vitejs/vite/blob/main/packages/vite/client.d.ts
// CSS modules
type CSSModuleClasses = { readonly [key: string]: string };
declare module "*.module.css" {
const classes: CSSModuleClasses;
export default classes;
}
declare module "*.module.scss" {
const classes: CSSModuleClasses;
export default classes;
}
declare module "*.module.sass" {
const classes: CSSModuleClasses;
export default classes;
}
declare module "*.module.less" {
const classes: CSSModuleClasses;
export default classes;
}
declare module "*.module.styl" {
const classes: CSSModuleClasses;
export default classes;
}
declare module "*.module.stylus" {
const classes: CSSModuleClasses;
export default classes;
}
declare module "*.module.pcss" {
const classes: CSSModuleClasses;
export default classes;
}
declare module "*.module.sss" {
const classes: CSSModuleClasses;
export default classes;
}
// CSS
declare module "*.css" {}
declare module "*.scss" {}
declare module "*.sass" {}
declare module "*.less" {}
declare module "*.styl" {}
declare module "*.stylus" {}
declare module "*.pcss" {}
declare module "*.sss" {}
// images
declare module "*.apng" {
const src: string;
export default src;
}
declare module "*.png" {
const src: string;
export default src;
}
declare module "*.jpg" {
const src: string;
export default src;
}
declare module "*.jpeg" {
const src: string;
export default src;
}
declare module "*.jfif" {
const src: string;
export default src;
}
declare module "*.pjpeg" {
const src: string;
export default src;
}
declare module "*.pjp" {
const src: string;
export default src;
}
declare module "*.gif" {
const src: string;
export default src;
}
declare module "*.svg" {
const src: string;
export default src;
}
declare module "*.ico" {
const src: string;
export default src;
}
declare module "*.webp" {
const src: string;
export default src;
}
declare module "*.avif" {
const src: string;
export default src;
}
// fonts
declare module "*.woff" {
const src: string;
export default src;
}
declare module "*.woff2" {
const src: string;
export default src;
}
declare module "*.eot" {
const src: string;
export default src;
}
declare module "*.ttf" {
const src: string;
export default src;
}
declare module "*.otf" {
const src: string;
export default src;
}