Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"@types/chai-subset": "1.3.6",
"@types/common-tags": "^1.8.0",
"@types/crypto-js": "4.1.1",
"@types/jquery.scrollto": "1.4.29",
"@types/jquery.scrollto": "1.4.32",
"@types/mime": "^3.0.1",
"@types/mocha": "^8.0.3",
"@types/sinonjs__fake-timers": "8.1.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,58 +1,56 @@
diff --git a/node_modules/@types/jquery.scrollto/index.d.ts b/node_modules/@types/jquery.scrollto/index.d.ts
index 0a00c69..126a3d0 100755
index 25110fb..d23c9ce 100644
--- a/node_modules/@types/jquery.scrollto/index.d.ts
+++ b/node_modules/@types/jquery.scrollto/index.d.ts
@@ -6,7 +6,7 @@

@@ -1,6 +1,6 @@
/// <reference types="jquery"/>

-interface ScrollToOptions {
+interface JQueryScrollToOptions<TElement> extends JQuery.EffectsOptions<TElement> {
/**
* Which axis must be scrolled, use 'x', 'y', 'xy' or 'yx'.
*/
@@ -48,7 +48,7 @@ interface ScrollToOptions {
* Which axis must be scrolled, use 'x', 'y', 'xy' or 'yx'.
*/
@@ -42,7 +42,7 @@ interface ScrollToOptions {
onAfterFirst?: (() => void) | undefined;
}

-interface JQuery {
+interface JQuery<TElement> {
/**
* Scroll the matched elements
*/
@@ -60,7 +60,7 @@ interface JQuery {
* @param duration The OVERALL length of the animation
* @param settings Set of settings.
*/
* Scroll the matched elements
*/
@@ -54,7 +54,7 @@ interface JQuery {
* @param duration The OVERALL length of the animation
* @param settings Set of settings.
*/
- (target: any, duration?: number, settings?: ScrollToOptions): JQuery;
+ (target: any, duration?: number, settings?: JQueryScrollToOptions<TElement>): JQuery;
/**
* Scroll the matched elements
*
@@ -76,7 +76,7 @@ interface JQuery {
* @param settings Set of settings.
* @param onAfter The onAfter callback.
*/
* Scroll the matched elements
*
@@ -70,7 +70,7 @@ interface JQuery {
* @param settings Set of settings.
* @param onAfter The onAfter callback.
*/
- (target: any, settings: ScrollToOptions, onAfter?: Function): JQuery;
+ (target: any, settings: JQueryScrollToOptions<TElement>, onAfter?: Function): JQuery;

};
}

@@ -94,7 +94,7 @@ interface JQueryStatic {
* @param duration The OVERALL length of the animation
* @param settings Set of settings.
*/
@@ -86,7 +86,7 @@ interface JQueryStatic {
* @param duration The OVERALL length of the animation
* @param settings Set of settings.
*/
- (target: any, duration?: number, settings?: ScrollToOptions): JQuery;
+ (target: any, duration?: number, settings?: JQueryScrollToOptions<any>): JQuery;
/**
* Scroll window
*
@@ -110,7 +110,7 @@ interface JQueryStatic {
* @param settings Set of settings.
* @param onAfter The onAfter callback.
*/
* Scroll window
*
@@ -102,6 +102,6 @@ interface JQueryStatic {
* @param settings Set of settings.
* @param onAfter The onAfter callback.
*/
- (target: any, settings: ScrollToOptions, onAfter?: Function): JQuery;
+ (target: any, settings: JQueryScrollToOptions<any>, onAfter?: Function): JQuery;

};

}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8438,10 +8438,10 @@
expect "^30.0.0"
pretty-format "^30.0.0"

"@types/[email protected].29":
version "1.4.29"
resolved "https://registry.yarnpkg.com/@types/jquery.scrollto/-/jquery.scrollto-1.4.29.tgz#a3cdbe757249c08740dc4c36d83bf3c041e315cc"
integrity sha512-4AGdSgD6BDFcz53My+gtmsqbQFl72V7bc5YqhUw9jZTpx1w9ZiQqdvFyRU/DXSuBDG+pif8FL3geaKM7ZDGngw==
"@types/[email protected].32":
version "1.4.32"
resolved "https://registry.yarnpkg.com/@types/jquery.scrollto/-/jquery.scrollto-1.4.32.tgz#ddc3468338254eb675e49f417c0b81f103d34187"
integrity sha512-vvSKYXgllKgvs6DJgow1sT5rhVpkyei2WOakodGxyKA+w1PNVcQuY6PwrbBztbgvWxpT62kDM3RlbL0xmejHCA==
dependencies:
"@types/jquery" "*"

Expand Down
Loading