drab
Version:
Interactivity for You
8 lines • 365 B
TypeScript
import type { Constructor } from "../base/index.js";
/**
* @param actual Element to validate.
* @param expected Constructor of the expected element.
* @returns If valid returns `actual` otherwise throws `TypeError`.
*/
export declare const validate: <T extends HTMLElement>(actual: unknown, expected: Constructor<T>) => T;
//# sourceMappingURL=validate.d.ts.map