Amritanshu
5c7985e392
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
17 lines
379 B
TypeScript
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() {}
|
|
}
|