Options
All
  • Public
  • Public/Protected
  • All
Menu

Package asyncstorage

@typed/asyncstorage

AsyncStorage is an intentionally simple API for working with asynchronous storage destinations. Designed to be used for key-value storage.

Index

Type aliases

IndexedDbEnv

IndexedDbEnv: { indexedDbFactory: IDBFactory }

Type declaration

  • Readonly indexedDbFactory: IDBFactory

ItemEffect

ItemEffect<A>: PureEffect<Either<Error, A>>

Type parameters

  • A

ItemsEffect

ItemsEffect<A>: PureEffect<Either<Error, keyof A[]>>

Type parameters

  • A

Functions

createIndexedDb

createServerIndexedDbFactory

  • createServerIndexedDbFactory(testing?: boolean): IDBFactory

destroyDb

  • destroyDb(name: string, indexedDbFactory: typeof indexedDB): ItemEffect<boolean>

getAllKeys

  • getAllKeys(store: IDBObjectStore): ItemsEffect<string>

getAllValues

  • getAllValues<A>(store: IDBObjectStore): ItemsEffect<A>

getValue

openDatabase

  • openDatabase(name: string, indexedDbFactory: IDBFactory): ItemEffect<IDBDatabase>

putValue

  • putValue<A>(key: string, value: A, store: IDBObjectStore): ItemEffect<A>

removeValue

wrapStorage

Generated using TypeDoc