Dotloom TypeScript API
Preparing search index...
sdk/src
StorageAdapter
Interface StorageAdapter
Pluggable async storage (IndexedDB, OPFS, a server, cloud drives, …).
interface
StorageAdapter
{
id
:
string
;
list
()
:
Promise
<
StoredFile
[]
>
;
meta
(
key
:
string
)
:
Promise
<
StoredMeta
|
null
>
;
read
(
key
:
string
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
|
null
>
;
remove
(
key
:
string
)
:
Promise
<
void
>
;
write
(
key
:
string
,
bytes
:
Uint8Array
,
meta
:
StoredMeta
)
:
Promise
<
void
>
;
}
Implemented by
IndexedDbStorage
MemoryStorage
Index
Properties
id
Methods
list
meta
read
remove
write
Properties
Readonly
id
id
:
string
Methods
list
list
()
:
Promise
<
StoredFile
[]
>
Returns
Promise
<
StoredFile
[]
>
meta
meta
(
key
:
string
)
:
Promise
<
StoredMeta
|
null
>
Parameters
key
:
string
Returns
Promise
<
StoredMeta
|
null
>
read
read
(
key
:
string
)
:
Promise
<
Uint8Array
<
ArrayBufferLike
>
|
null
>
Parameters
key
:
string
Returns
Promise
<
Uint8Array
<
ArrayBufferLike
>
|
null
>
remove
remove
(
key
:
string
)
:
Promise
<
void
>
Parameters
key
:
string
Returns
Promise
<
void
>
write
write
(
key
:
string
,
bytes
:
Uint8Array
,
meta
:
StoredMeta
)
:
Promise
<
void
>
Parameters
key
:
string
bytes
:
Uint8Array
meta
:
StoredMeta
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
id
Methods
list
meta
read
remove
write
Dotloom TypeScript API
Loading...
Pluggable async storage (IndexedDB, OPFS, a server, cloud drives, …).