1 | declare type anyFunc = (...a: any[]) => any;
|
2 | declare type Params<Prop> = Prop extends anyFunc ? Parameters<Prop> : [Prop];
|
3 | declare type ImplReturn<Prop> = Prop extends anyFunc ? Parameters<Prop> : Prop;
|
4 | export declare function prepareInterceptor<ElementType extends Element, PropName extends keyof ElementType>(element: ElementType, propName: PropName, interceptorImpl: (this: ElementType, ...args: Params<ElementType[PropName]>) => {
|
5 | |
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | applyNative?: boolean;
|
13 | realArgs?: ImplReturn<ElementType[PropName]>;
|
14 | then?: () => void;
|
15 | }): void;
|
16 | export declare function prepareValueInterceptor(element: HTMLInputElement | HTMLTextAreaElement): void;
|
17 | export declare function prepareSelectionInterceptor(element: HTMLInputElement | HTMLTextAreaElement): void;
|
18 | export declare function prepareRangeTextInterceptor(element: HTMLInputElement | HTMLTextAreaElement): void;
|
19 | export {};
|