9 lines
382 B
TypeScript
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;
|
|
};
|