fix(build): add missing return types now enforced by linter
This commit is contained in:
@ -30,7 +30,7 @@ export class SpyLocation extends SpyObject {
|
||||
|
||||
simulateUrlPop(pathname: string) { ObservableWrapper.callNext(this._subject, {'url': pathname}); }
|
||||
|
||||
normalizeAbsolutely(url) { return this._baseHref + url; }
|
||||
normalizeAbsolutely(url): string { return this._baseHref + url; }
|
||||
|
||||
go(url: string) {
|
||||
url = this.normalizeAbsolutely(url);
|
||||
@ -53,5 +53,5 @@ export class SpyLocation extends SpyObject {
|
||||
ObservableWrapper.subscribe(this._subject, onNext, onThrow, onReturn);
|
||||
}
|
||||
|
||||
noSuchMethod(m) { return super.noSuchMethod(m); }
|
||||
noSuchMethod(m) { super.noSuchMethod(m); }
|
||||
}
|
||||
|
@ -3,7 +3,7 @@ import {NgZone} from 'angular2/src/core/zone/ng_zone';
|
||||
export class MockNgZone extends NgZone {
|
||||
constructor() { super({enableLongStackTrace: false}); }
|
||||
|
||||
run(fn) { return fn(); }
|
||||
run(fn): any { return fn(); }
|
||||
|
||||
runOutsideAngular(fn) { return fn(); }
|
||||
runOutsideAngular(fn): any { return fn(); }
|
||||
}
|
||||
|
Reference in New Issue
Block a user