-
Notifications
You must be signed in to change notification settings - Fork 187
/
Copy pathtypings.d.ts
46 lines (39 loc) · 928 Bytes
/
typings.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
declare module '*.css' {
const styles: Record<string, string>;
export default styles;
}
declare module '*.svg' {
const source: string;
export default source;
}
declare module '*.png' {
const source: string;
export default source;
}
declare module '*.md' {
const source: string;
export default source;
}
declare module '*.txt' {
const source: string;
export default source;
}
declare module 'simply-uuid' {
export function generate(): string;
}
declare module 'highlight.js/lib/core.js' {
import hljs from 'highlight.js';
export default hljs;
}
declare module 'combokeys/test/lib/key-event' {
export function simulate(
charCode: number,
keyCode: number,
modifiers?: ('shift' | 'ctrl' | 'alt' | 'meta')[],
element?: Element,
repeat?: number,
): void;
}
declare module 'scrollbar-width' {
export default function getScrollbarWidth(recalculate?: boolean): number | null;
}