@openreplay/tracker-assist
Version:
Tracker plugin for screen assistance through the WebRTC
16 lines (15 loc) • 491 B
TypeScript
type TagTypeMap = {
html: HTMLHtmlElement;
body: HTMLBodyElement;
img: HTMLImageElement;
input: HTMLInputElement;
textarea: HTMLTextAreaElement;
select: HTMLSelectElement;
label: HTMLLabelElement;
iframe: HTMLIFrameElement;
style: HTMLStyleElement | SVGStyleElement;
link: HTMLLinkElement;
canvas: HTMLCanvasElement;
};
export declare function hasTag<T extends keyof TagTypeMap>(el: Node, tagName: T): el is TagTypeMap[typeof tagName];
export {};