UNPKG

html-spec-tags

Version:

All HTML tags supported by the current spec. With types!

11 lines (10 loc) 468 B
import { type SpecTagName, type SpecTagNameConstructor } from './all-tags.js'; /** @category Tag */ export declare const specTagNameByConstructor: Map<SpecTagNameConstructor, SpecTagName>; /** * Get a spec tag name from the given constructor. Note that some constructors match multiple tags * so you might get an unexpected output here. * * @category Tag */ export declare function getSpecTagNameFromConstructor(constructor: SpecTagNameConstructor): SpecTagName;