Skip to content

getMutable

getMutable<T>(key, instance): Promise<undefined | FileBuilder<T>>

Defined in: astrobase/src/mutable/mutable.ts:42

Queries clients to retrieve an item of mutable content. If all clients are queried with no successful result, returns void.

T

The type of the content after successful decoding.

string

The key string.

Instance

The Instance config.

Promise<undefined | FileBuilder<T>>

A promise that resolves with the decoded content, or void if nothing valid was retrieved.