This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import type { adapterInterface, Item } from '@/data/interfaces' | |
class IndexedDbService implements adapterInterface { | |
protected db: IDBDatabase | null = null | |
constructor( | |
protected db_name: string = 'my_database', | |
protected store_name: string = 'items', | |
) { | |
this.db_name = db_name |