Skip to content

getContent

getContent<T>(cid, instance): Promise<undefined | T>

Defined in: astrobase/src/content/api.ts:31

Retrieves an item of content.

T

The type of the content after being parsed.

ContentIdentifierLike

A valid ContentIdentifierLike value.

Instance

The instance to use for this request.

Promise<undefined | T>

A promise that resolves with the parsed content, or undefined if nothing acceptable was found.