Updated to angular 11

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

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ export class CookieService {
return '';
}
public deleteCookie(name) {
public deleteCookie(name: string) {
this.setCookie(name, '', -1);
}
+1 -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(','),
);