| 17 | import {DataMultiPropertiesCollection} from "./DataMultiPropertiesCollection"; |
| 18 | |
| 19 | export interface IDataCollection { |
| 20 | // A valid data collection is one that listens to data changes from the API. The initial set of data objects may |
| 21 | // not have been acquired yet, isResolved() tracks this. Invalid data collections are the ones that are constructed |
| 22 | // without an accessor and the ones whose accessor has expired. |
| 23 | isValid(): boolean; |
| 24 | isResolved(): boolean; |
| 25 | subscribe(): Promise<void>; |
| 26 | initial(data: any[]): void; |
| 27 | close(): Promise<void>; |
| 28 | } |
| 29 | |
| 30 | export class DataCollection<DataType extends BaseClass> implements IDataCollection { |
| 31 | restPath!: string; |
no outgoing calls
no test coverage detected