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:
parent
81e9bdc010
commit
1279d75f7f
|
@ -45,7 +45,7 @@ export class SearchService {
|
||||||
initWorker(workerUrl: string, initDelay: number) {
|
initWorker(workerUrl: string, initDelay: number) {
|
||||||
const searchResults = Observable
|
const searchResults = Observable
|
||||||
// Wait for the initDelay or the first search
|
// Wait for the initDelay or the first search
|
||||||
.race(
|
.race<any>(
|
||||||
Observable.timer(initDelay),
|
Observable.timer(initDelay),
|
||||||
this.searchesSubject.first()
|
this.searchesSubject.first()
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue