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
389 B
TypeScript
16 lines
389 B
TypeScript
import { DataSource } from '@angular/cdk/collections';
|
|
import { Observable, of as observableOf } from 'rxjs';
|
|
import { CashFlowItem } from './cash-flow';
|
|
|
|
export class CashFlowDataSource extends DataSource<CashFlowItem> {
|
|
constructor(private data: CashFlowItem[]) {
|
|
super();
|
|
}
|
|
|
|
connect(): Observable<CashFlowItem[]> {
|
|
return observableOf(this.data);
|
|
}
|
|
|
|
disconnect() {}
|
|
}
|