-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Expand file tree
/
Copy pathcustom.d.ts
More file actions
34 lines (29 loc) · 781 Bytes
/
custom.d.ts
File metadata and controls
34 lines (29 loc) · 781 Bytes
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
declare module '*.svg' {
import * as React from 'react';
const ReactComponent: React.FunctionComponent<
React.SVGProps<SVGSVGElement> & { title?: string }
>;
// eslint-disable-next-line import/no-default-export
export default ReactComponent;
}
// Extend window for Redux DevTools
interface Window {
__REDUX_DEVTOOLS_EXTENSION__?: () => any;
}
// Extend NodeModule for hot reloading
interface NodeModule {
hot?: {
accept(path?: string, callback?: () => void): void;
};
}
declare module 'loop-protect' {
const loopProtect: (code: string) => string;
export default loopProtect;
}
declare module 'mime' {
const mime: {
getType: (filename: string) => string | null;
getExtension: (type: string) => string | null;
};
export default mime;
}