HeadLink
interfaz Since 1.2.0
Etiqueta <link> de HeadInput. Se deduplica por key o, si falta, por rel y href;
rel: "canonical" y rel: "icon" son únicos aunque cambie href.
ts
import type { HeadLink } from "@meekojs/meeko/framework";Source code src/shared/head.ts:50
Declaración #
ts
interface HeadLink {
rel: string
href: string
hreflang?: string
type?: string
media?: string
sizes?: string
as?: string
crossorigin?: '' | 'anonymous' | 'use-credentials'
key?: string
}Example #
ts
import type { HeadLink } from "@meekojs/meeko/framework";
const canonical: HeadLink = { rel: "canonical", href: "https://example.com/docs" };