(private _data: readonly T[] | Observable<readonly T[]>)
| 12 | /** DataSource wrapper for a native array. */ |
| 13 | export class ArrayDataSource<T> extends DataSource<T> { |
| 14 | constructor(private _data: readonly T[] | Observable<readonly T[]>) { |
| 15 | super(); |
| 16 | } |
| 17 | |
| 18 | connect(): Observable<readonly T[]> { |
| 19 | return isObservable(this._data) ? this._data : observableOf(this._data); |
nothing calls this directly
no outgoing calls
no test coverage detected