MetaDescriptor
One entry of the meta export (React Router style): a title, a <meta> by name, property or httpEquiv or charSet, or a tagName: "link" with link attributes.
One entry of the meta export (React Router style): a title, a <meta> by name, property or httpEquiv
or charSet, or a tagName: "link" with link attributes.
Import#
ts
import type { MetaDescriptor } from "@shadow-js/dusk";
Signature#
ts
type MetaDescriptor =
| { readonly title: string }
| { readonly charSet: "utf-8" }
| { readonly name: string; readonly content: string }
| { readonly property: string; readonly content: string }
| { readonly httpEquiv: string; readonly content: string }
| ({ readonly tagName: "link"; readonly rel: string; readonly href?: string } & Readonly<
Record<string, string>
>)