forked from topcoder-platform/topcoder-react-utils
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.d.ts
42 lines (33 loc) · 896 Bytes
/
types.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
/* eslint-disable no-var */
declare var IS_REACT_ACT_ENVIRONMENT: boolean | undefined;
declare var REACT_UTILS_FORCE_CLIENT_SIDE: boolean | undefined;
declare module '@babel/register/experimental-worker' {
const register: {
(args: {
envName: string;
extensions: string[];
root: string;
}): void;
revert: () => void;
};
export default register;
}
// TODO: This should be done inside my CSURF fork itself.
declare module '@dr.pogodin/csurf' {
import F from 'csurf';
export default F;
}
declare module 'node-forge/lib/forge' {
import F from 'node-forge';
export default F;
}
declare module '*.png' {
export default string;
}
declare namespace React {
// This allows all JSX elements to have additional "styleName" attribute,
// handled by "@dr.pogodin/babel-plugin-react-css-modules".
interface Attributes {
styleName?: string;
}
}