PromoCursed/node_modules/rc-util/lib/test/domHook.d.ts

9 lines
382 B
TypeScript
Raw Normal View History

2024-08-20 23:25:37 +04:00
export type ElementClass = Function;
export type Property = PropertyDescriptor | Function;
export declare function spyElementPrototypes<T extends ElementClass>(elementClass: T, properties: Record<string, Property>): {
mockRestore(): void;
};
export declare function spyElementPrototype(Element: ElementClass, propName: string, property: Property): {
mockRestore(): void;
};