Extends the $ object with new HTML and/or SVG tags. Define the new tag types in the HtmlAttributeOverrides or SvgAttributeOverrides interface first.
$
HtmlAttributeOverrides
SvgAttributeOverrides
Rest
The tags to add.
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');
Generated using TypeDoc
Extends the
$
object with new HTML and/or SVG tags. Define the new tag types in theHtmlAttributeOverrides
orSvgAttributeOverrides
interface first.