-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathimage.d.ts
51 lines (42 loc) · 1008 Bytes
/
image.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
/**
* This is copied from https://github.com/twopluszero/next-images/blob/master/index.d.ts#L17
* for next-images (https://github.com/twopluszero/next-images). You can normally just
* import it but we need to have a different declaration for ".svg" file types since
* we're using babel-plugin-inline-react-svg (https://github.com/airbnb/babel-plugin-inline-react-svg).
*/
declare module "*.svg" {
const content: any;
export default content;
}
declare module "*.jpeg" {
const value: string;
export = value;
}
declare module "*.jpg" {
const value: string;
export = value;
}
declare module "*.png" {
const value: string;
export = value;
}
declare module "*.gif" {
const value: string;
export = value;
}
declare module "*.ico" {
const value: string;
export = value;
}
declare module "*.webp" {
const value: string;
export = value;
}
declare module "*.jp2" {
const value: string;
export = value;
}
declare module "*.avif" {
const value: string;
export = value;
}