(collection: {
state: Map<TKey, T>
})
| 32 | ) => stripVirtualProps(collection.state.get(key)) |
| 33 | |
| 34 | const getStateEntries = < |
| 35 | T extends object, |
| 36 | TKey extends string | number, |
| 37 | >(collection: { |
| 38 | state: Map<TKey, T> |
| 39 | }) => |
| 40 | Array.from(collection.state.entries()).map(([key, value]) => [ |
| 41 | key, |
| 42 | stripVirtualProps(value), |
| 43 | ]) |
| 44 | |
| 45 | describe(`Collection`, () => { |
| 46 | it(`should throw if there's no sync config`, () => { |
no test coverage detected