Removed the use of any and enabled the rule in eslint.
Now according to me the conversion is final. Testing is required.
This commit is contained in:
@@ -4,6 +4,7 @@ import { Observable } from 'rxjs/internal/Observable';
|
||||
import { catchError } from 'rxjs/operators';
|
||||
|
||||
import { ErrorLoggerService } from '../core/error-logger.service';
|
||||
import { IssueGridItem } from '../core/issue-grid-item';
|
||||
|
||||
const url = '/api/issue-grid';
|
||||
const serviceName = 'IssueGridService';
|
||||
@@ -14,10 +15,10 @@ const serviceName = 'IssueGridService';
|
||||
export class IssueGridService {
|
||||
constructor(private http: HttpClient, private log: ErrorLoggerService) {}
|
||||
|
||||
issueGrid(date: string): Observable<any[]> {
|
||||
return <Observable<any[]>>(
|
||||
issueGrid(date: string): Observable<IssueGridItem[]> {
|
||||
return <Observable<IssueGridItem[]>>(
|
||||
this.http
|
||||
.get<any[]>(`${url}/${date}`)
|
||||
.get<IssueGridItem[]>(`${url}/${date}`)
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'autocomplete')))
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user