import Collection from './collection' import { Item } from '../types/Item' import { IStorageAdapter } from './IStorageAdapter' export default class AdapterMemory implements IStorageAdapter { get name() { return 'AdapterMemory' as const } collection!: Collection clone(): AdapterMemory { return new AdapterMemory() } init(collection: Collection): this { this.collection = collection return this } restore(name?: string): Promise { return Promise.resolve({}) } store(name: string) { return Promise.resolve() } }