refactor(platform-browser): compiler platform-browser packages cleanly (#18464)
This commit is contained in:
parent
5f501c722b
commit
1640d2aa0b
|
@ -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;
|
||||
});
|
||||
|
|
|
@ -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(); }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue