Files
brewman/overlord/src/app/purchase/purchase-datasource.ts
tanshu 1350870f9e Moved from tslint to eslint as tslint was depreciated.
Added prettier and also prettied all the typescript files using prettier

ESLint is using the AirBnB rules which are the most strict to lint the files.
2020-10-01 21:28:12 +05:30

16 lines
368 B
TypeScript

import { DataSource } from '@angular/cdk/collections';
import { Observable } from 'rxjs';
import { Inventory, Journal } from '../core/voucher';
export class PurchaseDataSource extends DataSource<Inventory> {
constructor(private data: Observable<Inventory[]>) {
super();
}
connect(): Observable<Inventory[]> {
return this.data;
}
disconnect() {}
}