Skip to content

AssetSyntax

ts
type AssetSyntax = object;

Defined in: server/asset.ts:8 ↗

Asset syntax captured from transformed document.

Properties

alt?

ts
optional alt: string;

Defined in: server/asset.ts:17 ↗

Optional alternate text from captured syntax.


index

ts
index: number;

Defined in: server/asset.ts:12 ↗

First index of the captured syntax text inside transformed document content.


spec?

ts
optional spec: string;

Defined in: server/asset.ts:19 ↗

Optional raw (un-parsed) user-defined asset specifications from captured syntax.


text

ts
text: string;

Defined in: server/asset.ts:10 ↗

Full text of the captured syntax.


url

ts
url: string;

Defined in: server/asset.ts:15 ↗

URL from captured syntax; may be direct location of the asset's source content (eg, image link) or endpoint for resolving the content, such as REST API or YouTube link.