@testing-library/user-event
Advanced tools
Comparing version 14.2.4 to 14.2.5
declare type anyFunc = (...a: any[]) => any; | ||
declare type Params<Prop> = Prop extends anyFunc ? Parameters<Prop> : [Prop]; | ||
declare type ImplReturn<Prop> = Prop extends anyFunc ? Parameters<Prop> : Prop; | ||
export declare function prepareInterceptor<ElementType extends Node, PropName extends keyof ElementType>(element: ElementType, propName: PropName, interceptorImpl: (this: ElementType, ...args: Params<ElementType[PropName]>) => { | ||
export declare function prepareInterceptor<ElementType extends Element, PropName extends keyof ElementType>(element: ElementType, propName: PropName, interceptorImpl: (this: ElementType, ...args: Params<ElementType[PropName]>) => { | ||
/** | ||
@@ -6,0 +6,0 @@ * React tracks the changes on element properties. |
@@ -15,3 +15,3 @@ declare const UIValue: unique symbol; | ||
} | ||
export declare function prepareValueInterceptor(element: HTMLInputElement): void; | ||
export declare function prepareValueInterceptor(element: HTMLInputElement | HTMLTextAreaElement): void; | ||
export declare function setUIValue(element: HTMLInputElement | HTMLTextAreaElement, value: string): void; | ||
@@ -18,0 +18,0 @@ export declare function getUIValue(element: HTMLInputElement | HTMLTextAreaElement): string; |
{ | ||
"name": "@testing-library/user-event", | ||
"version": "14.2.4", | ||
"version": "14.2.5", | ||
"description": "Fire events the same way the user does", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
253100