Type Parameters
C
C extends string
Parameters
collection
C
Returns
TapStorageResult<TapSingletonDocument<C>>
Remarks
The argument is a collection name from theTapStorageMap augmentation
tappify extension types writes, and the collection has to be declared with
"singleton": true; an id-keyed collection throws TAP_UNKNOWN_COLLECTION,
with the tap.storage.<name>.list() path in the message. data is undefined
while the first read is in flight and null until the document is first
written. Every storage call needs the storage:write scope, reads included, and
rejects with TAP_SCOPE_MISSING without it. A write from another mount or
another browser tab of the same install refetches this one.