forked from webbestmaster/typescript-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeclaration.d.ts
executable file
·75 lines (57 loc) · 1.43 KB
/
declaration.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
/* eslint-disable import/no-default-export, init-declarations */
declare module '*.svg' {
const content: string;
export default content;
}
declare module '*.png' {
const content: string;
export default content;
}
declare module '*.md' {
const content: string;
export default content;
}
declare module '*.txt' {
const content: string;
export default content;
}
declare const IS_PRODUCTION: unknown;
declare const BUILD_DATE_H: unknown;
// SSR
declare const NAVIGATION_DATA: string | void;
declare const ARTICLE_DATA: string | void;
declare module 'webp-converter' {
declare type LoggingOptionType =
// eslint-disable-next-line max-len
| '-map 1'
| '-map 2'
| '-map 3'
| '-map 4'
| '-map 5'
| '-map 6'
| '-print_lsim'
| '-print_psnr'
| '-print_ssim'
| '-progress'
| '-quiet'
| '-short'
| '-v';
declare type CwebpType = (
sourcePath: string,
destinationPath: string,
// https://developers.google.com/speed/webp/docs/cwebp
convertFlags: string,
loggingFlags: LoggingOptionType
) => Promise<void>;
declare type CebpConverterType = {
cwebp: CwebpType;
};
const webpConverter: CebpConverterType;
export default webpConverter;
}
/*
declare module '*.scss';
declare module '*.png';
declare module '*.jpg';
declare module '*.mp3';
*/