From c16ce1de8e8c21ad2136335d3b0b7d230e6d2f24 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 13 Jan 2017 12:16:00 +0100 Subject: Client: add basic aot support --- client/src/custom-typings.d.ts | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'client/src/custom-typings.d.ts') 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' // 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; @@ -56,8 +66,8 @@ interface SystemJS { } interface GlobalEnvironment { - ENV; - HMR; + ENV: string; + HMR: boolean; SystemJS: SystemJS; System: SystemJS; } @@ -76,7 +86,6 @@ type AsyncRoutes = { FactoryPromise }; - type IdleCallbacks = Es6PromiseLoader | Function | FactoryEs6PromiseLoader | @@ -98,7 +107,6 @@ interface WebpackModule { }; } - interface WebpackRequire { (id: string): any; (paths: string[], callback: (...modules: any[]) => void): void; @@ -114,7 +122,6 @@ interface ErrorStackTraceLimit { stackTraceLimit: number; } - // Extend typings interface NodeRequire extends WebpackRequire {} interface ErrorConstructor extends ErrorStackTraceLimit {} -- cgit v1.2.3