getContent
getContent<
T
>(cid
,instance
):Promise
<undefined
|T
>
Defined in: astrobase/src/content/api.ts:31
Retrieves an item of content.
Type Parameters
Section titled “Type Parameters”T
The type of the content after being parsed.
Parameters
Section titled “Parameters”A valid ContentIdentifierLike value.
instance
Section titled “instance”The instance to use for this request.
Returns
Section titled “Returns”Promise
<undefined
| T
>
A promise that resolves with the parsed content, or undefined
if nothing acceptable
was found.