All the types you need for your <head>
npm install zhead
All of the TypeScript definitions for <head>.
Powering Unhead.
Status: Stable Please report any issues 🐛 Made possible by my Sponsor Program 💖 Follow me @harlan_zw 🐦 • Join Discord for help |
- 💎 Fully typed Head schema
- 💎 Commented with MDN docs
- 💎 Fully Augmentable
- 💎 100+ typed meta's
``bash
npm install --save-dev zhead
Types
$3
Typescript base schema for document <head>.
`ts
export interface Head extends BaseHead {
/**
* The HTML element defines the document's title that is shown in a browser's title bar or a page's tab.
* It only contains text; tags within the element are ignored.
*
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title
*/
title?: string
/**
* The HTML element specifies the base URL to use for all relative URLs in a document.
* There can be only one element in a document.
*
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
*/
base?: Partial>
/**
* The HTML element specifies relationships between the current document and an external resource.
* This element is most commonly used to link to stylesheets, but is also used to establish site icons
* (both "favicon" style icons and icons for the home screen and apps on mobile devices) among other things.
*
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-as
*/
link?: (Link & DataKeys & DefinedValueOrEmptyObject)[]
/**
* The element represents metadata that cannot be expressed in other HTML elements, like or Dist Tags
latest2.2.4beta1.0.0-beta.13