I am getting typescript error Expected 0 type arguments, but got 1 for line that returns get call. What is wrong with my get call?
public get(params: SummaryParams): Observable<Summary[]> {
const uri = `${this.config.URLS.LOAD_SUMMARY}`;
const params = new HttpParams()
.set('startDate', params.startDate.toString())
.set('endDate', params.endDate.toString())
.set('userId', params.userId);
return this.http.get<Summary[]>(uri, { params });
}
optionsobject as well angular.io/api/common/http/HttpClient#get