amis-rpc-design/node_modules/rc-util/es/test/domHook.d.ts
2023-10-07 19:42:30 +08: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;
};