Skip to content

Instantly share code, notes, and snippets.

@RafalFilipek
Created September 23, 2016 20:03
Show Gist options
  • Save RafalFilipek/8427ad129b74057a727e8c9c20b3185a to your computer and use it in GitHub Desktop.
Save RafalFilipek/8427ad129b74057a727e8c9c20b3185a to your computer and use it in GitHub Desktop.
interface Window {
Promise: PromiseConstructor;
}
declare var require: {
(path: string): any;
<T>(path: string): T;
(paths: string[], callback: (...modules: any[]) => void): void;
ensure: (paths: string[], callback: (require: <T>(path: string) => T) => void) => void;
};
declare var fetch: any;
declare var module: any;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment