4 lines
189 B
TypeScript
Raw Permalink Normal View History

2025-12-10 12:02:17 +08:00
type GetElement = () => HTMLElement;
declare function unwrapElement<T>(target: T | string | GetElement): T extends HTMLElement ? HTMLElement : HTMLElement | null;
export { unwrapElement };