diff options
Diffstat (limited to 'client/src/custom-typings.d.ts')
-rw-r--r-- | client/src/custom-typings.d.ts | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/client/src/custom-typings.d.ts b/client/src/custom-typings.d.ts index 95787181f..7cb57b62b 100644 --- a/client/src/custom-typings.d.ts +++ b/client/src/custom-typings.d.ts | |||
@@ -46,6 +46,16 @@ import * as _ from 'lodash' | |||
46 | // support NodeJS modules without type definitions | 46 | // support NodeJS modules without type definitions |
47 | declare module '*'; | 47 | declare module '*'; |
48 | 48 | ||
49 | /* | ||
50 | // for legacy tslint etc to understand rename 'modern-lru' with your package | ||
51 | // then comment out `declare module '*';`. For each new module copy/paste | ||
52 | // this method of creating an `any` module type definition | ||
53 | declare module 'modern-lru' { | ||
54 | let x: any; | ||
55 | export = x; | ||
56 | } | ||
57 | */ | ||
58 | |||
49 | // Extra variables that live on Global that will be replaced by webpack DefinePlugin | 59 | // Extra variables that live on Global that will be replaced by webpack DefinePlugin |
50 | declare var ENV: string; | 60 | declare var ENV: string; |
51 | declare var HMR: boolean; | 61 | declare var HMR: boolean; |
@@ -56,8 +66,8 @@ interface SystemJS { | |||
56 | } | 66 | } |
57 | 67 | ||
58 | interface GlobalEnvironment { | 68 | interface GlobalEnvironment { |
59 | ENV; | 69 | ENV: string; |
60 | HMR; | 70 | HMR: boolean; |
61 | SystemJS: SystemJS; | 71 | SystemJS: SystemJS; |
62 | System: SystemJS; | 72 | System: SystemJS; |
63 | } | 73 | } |
@@ -76,7 +86,6 @@ type AsyncRoutes = { | |||
76 | FactoryPromise | 86 | FactoryPromise |
77 | }; | 87 | }; |
78 | 88 | ||
79 | |||
80 | type IdleCallbacks = Es6PromiseLoader | | 89 | type IdleCallbacks = Es6PromiseLoader | |
81 | Function | | 90 | Function | |
82 | FactoryEs6PromiseLoader | | 91 | FactoryEs6PromiseLoader | |
@@ -98,7 +107,6 @@ interface WebpackModule { | |||
98 | }; | 107 | }; |
99 | } | 108 | } |
100 | 109 | ||
101 | |||
102 | interface WebpackRequire { | 110 | interface WebpackRequire { |
103 | (id: string): any; | 111 | (id: string): any; |
104 | (paths: string[], callback: (...modules: any[]) => void): void; | 112 | (paths: string[], callback: (...modules: any[]) => void): void; |
@@ -114,7 +122,6 @@ interface ErrorStackTraceLimit { | |||
114 | stackTraceLimit: number; | 122 | stackTraceLimit: number; |
115 | } | 123 | } |
116 | 124 | ||
117 | |||
118 | // Extend typings | 125 | // Extend typings |
119 | interface NodeRequire extends WebpackRequire {} | 126 | interface NodeRequire extends WebpackRequire {} |
120 | interface ErrorConstructor extends ErrorStackTraceLimit {} | 127 | interface ErrorConstructor extends ErrorStackTraceLimit {} |