( collection: Collection<T>, )
| 39 | * Get all loaded item IDs from a collection |
| 40 | */ |
| 41 | export function getLoadedIds<T extends { id: string }>( |
| 42 | collection: Collection<T>, |
| 43 | ): Array<string> { |
| 44 | return Array.from(collection.state.values()).map((item) => item.id) |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * Get count of loaded items in a collection |
no test coverage detected
searching dependent graphs…