// support NodeJS modules without type definitions
declare module '*';
+/*
+// for legacy tslint etc to understand rename 'modern-lru' with your package
+// then comment out `declare module '*';`. For each new module copy/paste
+// this method of creating an `any` module type definition
+declare module 'modern-lru' {
+ let x: any;
+ export = x;
+}
+*/
+
// Extra variables that live on Global that will be replaced by webpack DefinePlugin
declare var ENV: string;
declare var HMR: boolean;
}
interface GlobalEnvironment {
- ENV;
- HMR;
+ ENV: string;
+ HMR: boolean;
SystemJS: SystemJS;
System: SystemJS;
}
FactoryPromise
};
-
type IdleCallbacks = Es6PromiseLoader |
Function |
FactoryEs6PromiseLoader |
};
}
-
interface WebpackRequire {
(id: string): any;
(paths: string[], callback: (...modules: any[]) => void): void;
stackTraceLimit: number;
}
-
// Extend typings
interface NodeRequire extends WebpackRequire {}
interface ErrorConstructor extends ErrorStackTraceLimit {}