fix(aio): fix SearchService to work with TypeScript 2.4 (#19511)

The call to `race` required a type parameter to disambiguate the return type.

PR Close #19511
This commit is contained in:
Peter Bacon Darwin 2017-10-02 12:44:04 +01:00 committed by Tobias Bosch
parent 81e9bdc010
commit 1279d75f7f
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ export class SearchService {
initWorker(workerUrl: string, initDelay: number) {
const searchResults = Observable
// Wait for the initDelay or the first search
.race(
.race<any>(
Observable.timer(initDelay),
this.searchesSubject.first()
)