UNPKG

@practicaloptimism/uniplexer

Version:

A multiplexer for 3rd party service providers and application protocols

20 lines (13 loc) 402 B
import { DeleteItem } from '../../../@utility/data-structures/database' import { storeTable } from '../variables' const deleteItem: DeleteItem = method async function method (storeId: string, itemId: string): Promise<boolean[]> { if (!storeTable[storeId]) { return Promise.resolve([false]) } delete storeTable[storeId][itemId] return Promise.resolve([true]) } export { deleteItem }