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:
2020-11-24 08:03:43 +05:30
parent 715e35ef38
commit 2972203148
92 changed files with 610 additions and 378 deletions
+4 -3
View File
@@ -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')))
);
}