barker/bookie/src/app/sales/bills/bills-datasource.ts
Amritanshu 5c7985e392 Chore:
Moved to sqlalchemy 2.0
Added type checking as much as possible
Updated angular to 15
Moved from Angular flex layout to tailwind css

Started developing on vscode with devcontainers
2023-02-20 18:49:17 +05:30

17 lines
379 B
TypeScript

import { DataSource } from '@angular/cdk/collections';
import { Observable } from 'rxjs';
import { BillViewItem } from '../../core/bill-view-item';
export class BillsDataSource extends DataSource<BillViewItem> {
constructor(private data: Observable<BillViewItem[]>) {
super();
}
connect(): Observable<BillViewItem[]> {
return this.data;
}
disconnect() {}
}