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.
Type Parameters
Section titled “Type Parameters”T
The type of the File content after successful decoding.
Parameters
Section titled “Parameters”instance
Section titled “instance”The instance to query.
The hash of the desired File.
Returns
Section titled “Returns”Promise
<undefined
| FileBuilder
<T
>>
A promise that resolves with the File if successful or void
if nothing valid was
retrieved.