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
@@ -7,6 +7,7 @@ import { debounceTime, distinctUntilChanged, startWith, switchMap } from 'rxjs/o
import { Batch } from '../core/batch';
import { BatchService } from '../core/batch.service';
import { Inventory } from '../core/inventory';
import { MathService } from '../shared/math.service';
@Component({
@@ -21,7 +22,7 @@ export class IssueDialogComponent implements OnInit {
constructor(
public dialogRef: MatDialogRef<IssueDialogComponent>,
@Inject(MAT_DIALOG_DATA) public data: any,
@Inject(MAT_DIALOG_DATA) public data: { inventory: Inventory; date: string },
private fb: FormBuilder,
private math: MathService,
private batchSer: BatchService,
@@ -44,7 +45,7 @@ export class IssueDialogComponent implements OnInit {
batch: this.data.inventory.batch,
quantity: this.data.inventory.quantity,
});
this.batch = this.data.inventory.batch;
this.batch = this.data.inventory.batch as Batch;
}
displayFn(batch?: Batch): string {