Updated to angular 11

Now compiling with strict mode in typescript
Need to error checking now
This commit is contained in:
2020-11-22 10:13:37 +05:30
parent cabd6f2ea1
commit 6567f560ab
187 changed files with 1709 additions and 1184 deletions

View File

@ -20,7 +20,7 @@ export class CookieService {
return '';
}
public deleteCookie(name) {
public deleteCookie(name: string) {
this.setCookie(name, '', -1);
}

View File

@ -7,7 +7,7 @@ export class ToCsvService {
// eslint-disable-next-line class-methods-use-this
toCsv(headers: any, data: any[]): string {
const header = Object.keys(headers);
const replacer = (key, value) => (value === null ? '' : value);
const replacer = (key: string, value: string | number | null) => (value === null ? '' : value);
const csv = data.map((row) =>
header.map((fieldName) => JSON.stringify(row[headers[fieldName]], replacer)).join(','),
);