import { inject } from 'vue' import { COLLECTION_ITEM_SIGN, createCollectionWithScope, } from '../src/collection' const TestCollection = createCollectionWithScope('Test') export default TestCollection export const CollectionChildComponent = { setup() { const { getItems, collectionRef, itemMap } = inject( TestCollection.COLLECTION_INJECTION_KEY, undefined )! return { itemMap, getItems, collectionRef, } }, template: `