Skip to main content

Interface: AttachmentStoreLike

Defined in: types.ts:106

The slice of BlobStore capture fields use.

Only put is required: an adapter that can persist bytes but cannot hand back an object URL still lets a photo be captured, stored and synced — the field simply previews from the blob it is holding in memory instead. Declared with method syntax on purpose, so a real BlobStore (whose put takes the wider BlobInput) stays assignable.

Methods​

delete()?​

optional delete(id): Promise<void>;

Defined in: types.ts:110

Parameters​

ParameterType
idstring

Returns​

Promise<void>


get()?​

optional get(id): Promise<Blob | undefined>;

Defined in: types.ts:108

Parameters​

ParameterType
idstring

Returns​

Promise<Blob | undefined>


getUri()?​

optional getUri(id): Promise<string | undefined>;

Defined in: types.ts:109

Parameters​

ParameterType
idstring

Returns​

Promise<string | undefined>


put()​

put(
id,
data,
meta
): Promise<unknown>;

Defined in: types.ts:107

Parameters​

ParameterType
idstring
dataBlob
metaAttachmentMetaLike

Returns​

Promise<unknown>