Chore: Moved from Untyped to Stongly Typed forms.

This commit is contained in:
2022-07-15 13:24:25 +05:30
parent facf2df91e
commit 28f9bf2180
78 changed files with 1091 additions and 1004 deletions
@@ -6,6 +6,7 @@ import { merge, Observable, of as observableOf } from 'rxjs';
import { map, tap } from 'rxjs/operators';
import { Account } from '../../core/account';
import { AccountType } from '../../core/account-type';
/** Simple sort comparator for example ID/Name columns (for client-side sorting). */
const compare = (a: string | number | boolean, b: string | number | boolean, isAsc: boolean) =>
@@ -91,7 +92,7 @@ export class AccountListDataSource extends DataSource<Account> {
case 'name':
return compare(a.name, b.name, isAsc);
case 'type':
return compare(a.type.name, b.type.name, isAsc);
return compare((a.type as AccountType).name, (b.type as AccountType).name, isAsc);
case 'isActive':
return compare(a.isActive, b.isActive, isAsc);
case 'isReconcilable':