Metainterface
{
readonly root?: ImmutableURL | undefined;
readonly url?: ImmutableURL | undefined;
readonly app?: string | undefined;
readonly title?: string | undefined;
readonly description?: string | undefined;
readonly image?: string | undefined;
readonly language?: string | undefined;
readonly csp?: MetaCSP | undefined;
readonly tags?: MetaTags | undefined;
readonly links?: MetaLinks | undefined;
readonly modules?: MetaAssets | undefined;
readonly scripts?: MetaAssets | undefined;
readonly stylesheets?: MetaAssets | undefined;
}| Property | Type | |
|---|---|---|
.root | ImmutableURL | |
.url | ImmutableURL | URL of the current page (used to update history API and as the initial URL for routing). readonly |
.app | string | Title of the entire application. readonly |
.title | string | |
.description | string | Description of the current page. readonly |
.image | string | readonly |
.language | string | Language code (used for lang tag in HTML). readonly |
.csp | MetaCSP | Type for a meta Content-Security-Policy tag in { resource: string[] } format. readonly |
.tags | MetaTags | Set of named meta <meta /> tags in { name: content } format. readonly |
.links | MetaLinks | Set of resolved meta <link /> tags in { rel: href } format (hrefs already absolutified to ImmutableURI). readonly |
.modules | MetaAssets | Set of resolved linked assets in (href)[] format (hrefs already absolutified to ImmutableURI). readonly |
.scripts | MetaAssets | Set of resolved linked assets in (href)[] format (hrefs already absolutified to ImmutableURI). readonly |
.stylesheets | MetaAssets | Set of resolved linked assets in (href)[] format (hrefs already absolutified to ImmutableURI). readonly |
Combined meta data for a website page — title, URLs, description, CSP, tags, links, and assets.