-
Notifications
You must be signed in to change notification settings - Fork 50
/
globals.d.ts
50 lines (39 loc) · 1.21 KB
/
globals.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
// Definition for css module imports
// declare module '*.module.css' {
// const classes: { [key: string]: string };
// export default classes;
// }
// declare module '*.module.scss' {
// const classes: { [key: string]: string };
// export default classes;
// }
// declare module '*.module.sass' {
// const classes: { [key: string]: string };
// export default classes;
// }
// Simplified typings
declare module "*.module.css";
declare module "*.module.scss";
declare module "*.svg" {
const content: any;
export default content;
}
declare module "*.jpg" {
const content: any;
export default content;
}
declare module "*.webp" {
const content: any;
export default content;
}
declare module "*.epub" {
const content: any;
export default content;
}
// https://stackoverflow.com/questions/47130406/extending-global-types-e-g-window-inside-a-typescript-module#comment120678060_47130953
// https://stackoverflow.com/questions/47130406/extending-global-types-e-g-window-inside-a-typescript-module#comment125203797_47130953
// We define __TAURI__ since it will be used throughout the project
// declare global {
interface Window { __TAURI__: boolean; }
// }
// export {}