fix: 修正编译错误

This commit is contained in:
Zhicheng Wang 2017-10-03 12:49:09 +08:00
parent 9a43523368
commit 4308681d7b
2 changed files with 2802 additions and 2204 deletions

View File

@ -4,14 +4,14 @@ Use of this source code is governed by an MIT-style license that
can be found in the LICENSE file at http://angular.io/license can be found in the LICENSE file at http://angular.io/license
*/ */
import { NgZone, Injectable, Type } from '@angular/core'; import { Injectable, NgZone } from '@angular/core';
import { Observable } from 'rxjs/Observable'; import { WebWorkerClient } from 'app/shared/web-worker';
import { ReplaySubject } from 'rxjs/ReplaySubject';
import 'rxjs/add/observable/race'; import 'rxjs/add/observable/race';
import 'rxjs/add/observable/timer'; import 'rxjs/add/observable/timer';
import 'rxjs/add/operator/concatMap'; import 'rxjs/add/operator/concatMap';
import 'rxjs/add/operator/publish'; import 'rxjs/add/operator/publish';
import { WebWorkerClient } from 'app/shared/web-worker'; import { Observable } from 'rxjs/Observable';
import { ReplaySubject } from 'rxjs/ReplaySubject';
export interface SearchResults { export interface SearchResults {
query: string; query: string;
@ -46,7 +46,7 @@ export class SearchService {
const searchResults = Observable const searchResults = Observable
// Wait for the initDelay or the first search // Wait for the initDelay or the first search
.race( .race(
Observable.timer(initDelay), Observable.timer(initDelay).map((time) => time.toString()),
this.searchesSubject.first() this.searchesSubject.first()
) )
.concatMap(() => { .concatMap(() => {

File diff suppressed because it is too large Load Diff