tap.storage.<name> exposes for an id-keyed collection, which holds
many documents under ids you choose.
Remarks
A collection is id-keyed when the manifest leavessingleton off. Every call
needs the storage:write scope, list and get included.
Type Parameters
T
T
Methods
delete()
Parameters
id
string
Returns
Promise<void>
get()
null when the collection holds no document under that id.
Parameters
id
string
Returns
Promise<T | null>
list()
cursor a previous page answered with to read the next one.
Parameters
options?
cursor?
string
limit?
number
Returns
Promise<{
cursor?: string;
items: T & {
id: string;
}[];
}>
put()
Parameters
id
string
document
T
Returns
Promise<void>