1 |
|
2 |
|
3 |
|
4 | interface StaticImageData {
|
5 | src: string
|
6 | height: number
|
7 | width: number
|
8 | placeholder?: string
|
9 | }
|
10 |
|
11 | declare module '*.png' {
|
12 | const content: StaticImageData
|
13 |
|
14 | export default content
|
15 | }
|
16 |
|
17 | declare module '*.svg' {
|
18 | |
19 |
|
20 |
|
21 |
|
22 |
|
23 | const content: any
|
24 |
|
25 | export default content
|
26 | }
|
27 |
|
28 | declare module '*.jpg' {
|
29 | const content: StaticImageData
|
30 |
|
31 | export default content
|
32 | }
|
33 |
|
34 | declare module '*.jpeg' {
|
35 | const content: StaticImageData
|
36 |
|
37 | export default content
|
38 | }
|
39 |
|
40 | declare module '*.gif' {
|
41 | const content: StaticImageData
|
42 |
|
43 | export default content
|
44 | }
|
45 |
|
46 | declare module '*.webp' {
|
47 | const content: StaticImageData
|
48 |
|
49 | export default content
|
50 | }
|
51 |
|
52 | declare module '*.ico' {
|
53 | const content: StaticImageData
|
54 |
|
55 | export default content
|
56 | }
|
57 |
|
58 | declare module '*.bmp' {
|
59 | const content: StaticImageData
|
60 |
|
61 | export default content
|
62 | }
|