amis-rpc-design/node_modules/rc-util/lib/test/domHook.d.ts

9 lines
382 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08: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;
};