refactor(platform-browser): compiler platform-browser packages cleanly (#18464)

This commit is contained in:
Chuck Jazdzewski 2017-08-02 16:30:50 -07:00 committed by Victor Berchet
parent 5f501c722b
commit 1640d2aa0b
2 changed files with 2 additions and 3 deletions

View File

@ -14,7 +14,7 @@ export class ResourceLoaderImpl extends ResourceLoader {
get(url: string): Promise<string> {
let resolve: (result: any) => void;
let reject: (error: any) => void;
const promise = new Promise((res, rej) => {
const promise = new Promise<string>((res, rej) => {
resolve = res;
reject = rej;
});

View File

@ -109,7 +109,6 @@ class FakeEventManagerPlugin extends EventManagerPlugin {
class FakeNgZone extends NgZone {
constructor() { super({enableLongStackTrace: false}); }
run(fn: Function) { fn(); }
run<T>(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any[]): T { return fn(); }
runOutsideAngular(fn: Function) { return fn(); }
}