import { CreateItemStore } from '../../../@utility/data-structures/database' import { rootStore, storeTable } from '../variables' const createItemStore: CreateItemStore = createItemStoreFunction async function createItemStoreFunction (storeId: string): Promise { rootStore.setItem(storeId, true) storeTable[storeId] = rootStore.createInstance({ name: storeId }) // this.storeTable[storeId].clear() return Promise.resolve([storeId]) } export { createItemStore }