range-slider-element
Version:
A cross browser customizable and accessible <range-slider> web component
18 lines (17 loc) • 534 B
TypeScript
import type { RangeSliderElement } from './range-slider-element';
export type { RangeSliderElement as default };
/**
* Augments the global `HTMLElementTagNameMap` to recognize the `<range-slider>`
* custom element and associate it with the `RangeSliderElement` class.
*
* This allows TypeScript to treat:
* ```ts
* const el = document.createElement('range-slider');
* ```
* as having the type `RangeSliderElement`.
*/
declare global {
interface HTMLElementTagNameMap {
'range-slider': RangeSliderElement;
}
}