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.
16 lines
368 B
TypeScript
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() {}
|
|
}
|