PromoCursed/node_modules/rc-util/lib/test/domHook.d.ts
2024-08-20 23:25:37 +04:00

9 lines
382 B
TypeScript

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;
};