Skip to content

BlockSuite API Documentation / @blocksuite/sync / IndexedDBBlobSource

Class: IndexedDBBlobSource

Defined in: blob/impl/indexeddb.ts:5

Implements

Constructors

new IndexedDBBlobSource()

new IndexedDBBlobSource(name): IndexedDBBlobSource

Defined in: blob/impl/indexeddb.ts:12

Parameters

name

string

Returns

IndexedDBBlobSource

Properties

mimeTypeStore

readonly mimeTypeStore: UseStore

Defined in: blob/impl/indexeddb.ts:6


name

readonly name: string

Defined in: blob/impl/indexeddb.ts:12

Implementation of

BlobSource.name


readonly

readonly: boolean = false

Defined in: blob/impl/indexeddb.ts:8

Implementation of

BlobSource.readonly


store

readonly store: UseStore

Defined in: blob/impl/indexeddb.ts:10

Methods

delete()

delete(key): Promise<void>

Defined in: blob/impl/indexeddb.ts:14

Parameters

key

string

Returns

Promise<void>

Implementation of

BlobSource.delete


get()

get(key): Promise<null | Blob>

Defined in: blob/impl/indexeddb.ts:19

Parameters

key

string

Returns

Promise<null | Blob>

Implementation of

BlobSource.get


list()

list(): Promise<string[]>

Defined in: blob/impl/indexeddb.ts:29

Returns

Promise<string[]>

Implementation of

BlobSource.list


set()

set(key, value): Promise<string>

Defined in: blob/impl/indexeddb.ts:34

Parameters

key

string

value

Blob

Returns

Promise<string>

Implementation of

BlobSource.set