fix(build): add missing return types now enforced by linter

This commit is contained in:
Alex Eagle
2015-06-26 11:10:52 -07:00
parent bc585f2724
commit 44891996b5
61 changed files with 467 additions and 400 deletions

View File

@ -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); }
}

View File

@ -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(); }
}