source: imaps-frontend/node_modules/vite/client.d.ts@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 4.5 KB
RevLine 
[d565449]1/// <reference path="./types/importMeta.d.ts" />
2
3// CSS modules
4type CSSModuleClasses = { readonly [key: string]: string }
5
6declare module '*.module.css' {
7 const classes: CSSModuleClasses
8 export default classes
9}
10declare module '*.module.scss' {
11 const classes: CSSModuleClasses
12 export default classes
13}
14declare module '*.module.sass' {
15 const classes: CSSModuleClasses
16 export default classes
17}
18declare module '*.module.less' {
19 const classes: CSSModuleClasses
20 export default classes
21}
22declare module '*.module.styl' {
23 const classes: CSSModuleClasses
24 export default classes
25}
26declare module '*.module.stylus' {
27 const classes: CSSModuleClasses
28 export default classes
29}
30declare module '*.module.pcss' {
31 const classes: CSSModuleClasses
32 export default classes
33}
34declare module '*.module.sss' {
35 const classes: CSSModuleClasses
36 export default classes
37}
38
39// CSS
40declare module '*.css' {}
41declare module '*.scss' {}
42declare module '*.sass' {}
43declare module '*.less' {}
44declare module '*.styl' {}
45declare module '*.stylus' {}
46declare module '*.pcss' {}
47declare module '*.sss' {}
48
49// Built-in asset types
50// see `src/node/constants.ts`
51
52// images
53declare module '*.apng' {
54 const src: string
55 export default src
56}
57declare module '*.bmp' {
58 const src: string
59 export default src
60}
61declare module '*.png' {
62 const src: string
63 export default src
64}
65declare module '*.jpg' {
66 const src: string
67 export default src
68}
69declare module '*.jpeg' {
70 const src: string
71 export default src
72}
73declare module '*.jfif' {
74 const src: string
75 export default src
76}
77declare module '*.pjpeg' {
78 const src: string
79 export default src
80}
81declare module '*.pjp' {
82 const src: string
83 export default src
84}
85declare module '*.gif' {
86 const src: string
87 export default src
88}
89declare module '*.svg' {
90 const src: string
91 export default src
92}
93declare module '*.ico' {
94 const src: string
95 export default src
96}
97declare module '*.webp' {
98 const src: string
99 export default src
100}
101declare module '*.avif' {
102 const src: string
103 export default src
104}
105
106// media
107declare module '*.mp4' {
108 const src: string
109 export default src
110}
111declare module '*.webm' {
112 const src: string
113 export default src
114}
115declare module '*.ogg' {
116 const src: string
117 export default src
118}
119declare module '*.mp3' {
120 const src: string
121 export default src
122}
123declare module '*.wav' {
124 const src: string
125 export default src
126}
127declare module '*.flac' {
128 const src: string
129 export default src
130}
131declare module '*.aac' {
132 const src: string
133 export default src
134}
135declare module '*.opus' {
136 const src: string
137 export default src
138}
139declare module '*.mov' {
140 const src: string
141 export default src
142}
143declare module '*.m4a' {
144 const src: string
145 export default src
146}
147declare module '*.vtt' {
148 const src: string
149 export default src
150}
151
152// fonts
153declare module '*.woff' {
154 const src: string
155 export default src
156}
157declare module '*.woff2' {
158 const src: string
159 export default src
160}
161declare module '*.eot' {
162 const src: string
163 export default src
164}
165declare module '*.ttf' {
166 const src: string
167 export default src
168}
169declare module '*.otf' {
170 const src: string
171 export default src
172}
173
174// other
175declare module '*.webmanifest' {
176 const src: string
177 export default src
178}
179declare module '*.pdf' {
180 const src: string
181 export default src
182}
183declare module '*.txt' {
184 const src: string
185 export default src
186}
187
188// wasm?init
189declare module '*.wasm?init' {
190 const initWasm: (
191 options?: WebAssembly.Imports,
192 ) => Promise<WebAssembly.Instance>
193 export default initWasm
194}
195
196// web worker
197declare module '*?worker' {
198 const workerConstructor: {
199 new (options?: { name?: string }): Worker
200 }
201 export default workerConstructor
202}
203
204declare module '*?worker&inline' {
205 const workerConstructor: {
206 new (options?: { name?: string }): Worker
207 }
208 export default workerConstructor
209}
210
211declare module '*?worker&url' {
212 const src: string
213 export default src
214}
215
216declare module '*?sharedworker' {
217 const sharedWorkerConstructor: {
218 new (options?: { name?: string }): SharedWorker
219 }
220 export default sharedWorkerConstructor
221}
222
223declare module '*?sharedworker&inline' {
224 const sharedWorkerConstructor: {
225 new (options?: { name?: string }): SharedWorker
226 }
227 export default sharedWorkerConstructor
228}
229
230declare module '*?sharedworker&url' {
231 const src: string
232 export default src
233}
234
235declare module '*?raw' {
236 const src: string
237 export default src
238}
239
240declare module '*?url' {
241 const src: string
242 export default src
243}
244
245declare module '*?inline' {
246 const src: string
247 export default src
248}
Note: See TracBrowser for help on using the repository browser.