Extends the $ object with new HTML and/or SVG tags. Define the new tag types in the HtmlAttributeOverrides or SvgAttributeOverrides interface first.
$
HtmlAttributeOverrides
SvgAttributeOverrides
The tags to add.
Returns a "factory" function to create tags with the given selector.
The selector string of the tag.
A function to create tags with the given selector.
import {extend} from 'whits';declare module 'whits' { interface HtmlAttributeOverrides { foo: 'bar' | 'baz'; boo: 'far' | 'faz'; }}extend('foo', 'boo'); Copy
import {extend} from 'whits';declare module 'whits' { interface HtmlAttributeOverrides { foo: 'bar' | 'baz'; boo: 'far' | 'faz'; }}extend('foo', 'boo');
Extends the
$object with new HTML and/or SVG tags. Define the new tag types in theHtmlAttributeOverridesorSvgAttributeOverridesinterface first.