Skip to content

getImmutable

getImmutable<T>(instance, hash): Promise<undefined | FileBuilder<T>>

Defined in: astrobase/src/immutable/repository.ts:39

Queries clients of the instance to retrieve an immutable File by its content hash. This function extends getContent.

T

The type of the File content after successful decoding.

Instance

The instance to query.

HashLike

The hash of the desired File.

Promise<undefined | FileBuilder<T>>

A promise that resolves with the File if successful or void if nothing valid was retrieved.