When I try to use delay with the HTTPClient object, it gives me the following error:
Cannot invoke an expression whose type lacks a call signature. Type 'Number' has no compatible call signatures.
TypeScript Concerns:
import { delay } from 'rxjs/operators';
this.http.get(url,{params:search})
.pipe(
delay(1000),
map(res => res)
, catchError((error: any) => {
return Observable.throw(error)
}));