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
| Parameter | Type |
|---|---|
id | string |
Returns
Promise<void>
get()?
optional get(id): Promise<Blob | undefined>;
Defined in: types.ts:108
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
Promise<Blob | undefined>
getUri()?
optional getUri(id): Promise<string | undefined>;
Defined in: types.ts:109
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
Promise<string | undefined>
put()
put(
id,
data,
meta
): Promise<unknown>;
Defined in: types.ts:107
Parameters
| Parameter | Type |
|---|---|
id | string |
data | Blob |
meta | AttachmentMetaLike |
Returns
Promise<unknown>