brewman/overlord/src/app/receipt/receipt-datasource.ts
tanshu 5ea09df272 Prettied, Linted and updated angular.json according to the latest schematic of Angular CLI.
Now all that is needed is to make it ready for strict compiling.
Removed eslint-plugin-prettier as it is not recommended and causes errors for both eslint and prettier

Bumped to v8.0.0
2020-10-10 08:45:05 +05:30

17 lines
351 B
TypeScript

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