|
1 | 1 | diff --git a/node_modules/@types/jquery.scrollto/index.d.ts b/node_modules/@types/jquery.scrollto/index.d.ts |
2 | | -index 0a00c69..126a3d0 100755 |
| 2 | +index 25110fb..d23c9ce 100644 |
3 | 3 | --- a/node_modules/@types/jquery.scrollto/index.d.ts |
4 | 4 | +++ b/node_modules/@types/jquery.scrollto/index.d.ts |
5 | | -@@ -6,7 +6,7 @@ |
6 | | - |
| 5 | +@@ -1,6 +1,6 @@ |
7 | 6 | /// <reference types="jquery"/> |
8 | 7 |
|
9 | 8 | -interface ScrollToOptions { |
10 | 9 | +interface JQueryScrollToOptions<TElement> extends JQuery.EffectsOptions<TElement> { |
11 | 10 | /** |
12 | | - * Which axis must be scrolled, use 'x', 'y', 'xy' or 'yx'. |
13 | | - */ |
14 | | -@@ -48,7 +48,7 @@ interface ScrollToOptions { |
| 11 | + * Which axis must be scrolled, use 'x', 'y', 'xy' or 'yx'. |
| 12 | + */ |
| 13 | +@@ -42,7 +42,7 @@ interface ScrollToOptions { |
15 | 14 | onAfterFirst?: (() => void) | undefined; |
16 | 15 | } |
17 | 16 |
|
18 | 17 | -interface JQuery { |
19 | 18 | +interface JQuery<TElement> { |
20 | 19 | /** |
21 | | - * Scroll the matched elements |
22 | | - */ |
23 | | -@@ -60,7 +60,7 @@ interface JQuery { |
24 | | - * @param duration The OVERALL length of the animation |
25 | | - * @param settings Set of settings. |
26 | | - */ |
| 20 | + * Scroll the matched elements |
| 21 | + */ |
| 22 | +@@ -54,7 +54,7 @@ interface JQuery { |
| 23 | + * @param duration The OVERALL length of the animation |
| 24 | + * @param settings Set of settings. |
| 25 | + */ |
27 | 26 | - (target: any, duration?: number, settings?: ScrollToOptions): JQuery; |
28 | 27 | + (target: any, duration?: number, settings?: JQueryScrollToOptions<TElement>): JQuery; |
29 | 28 | /** |
30 | | - * Scroll the matched elements |
31 | | - * |
32 | | -@@ -76,7 +76,7 @@ interface JQuery { |
33 | | - * @param settings Set of settings. |
34 | | - * @param onAfter The onAfter callback. |
35 | | - */ |
| 29 | + * Scroll the matched elements |
| 30 | + * |
| 31 | +@@ -70,7 +70,7 @@ interface JQuery { |
| 32 | + * @param settings Set of settings. |
| 33 | + * @param onAfter The onAfter callback. |
| 34 | + */ |
36 | 35 | - (target: any, settings: ScrollToOptions, onAfter?: Function): JQuery; |
37 | 36 | + (target: any, settings: JQueryScrollToOptions<TElement>, onAfter?: Function): JQuery; |
38 | | - |
39 | 37 | }; |
| 38 | + } |
40 | 39 |
|
41 | | -@@ -94,7 +94,7 @@ interface JQueryStatic { |
42 | | - * @param duration The OVERALL length of the animation |
43 | | - * @param settings Set of settings. |
44 | | - */ |
| 40 | +@@ -86,7 +86,7 @@ interface JQueryStatic { |
| 41 | + * @param duration The OVERALL length of the animation |
| 42 | + * @param settings Set of settings. |
| 43 | + */ |
45 | 44 | - (target: any, duration?: number, settings?: ScrollToOptions): JQuery; |
46 | 45 | + (target: any, duration?: number, settings?: JQueryScrollToOptions<any>): JQuery; |
47 | 46 | /** |
48 | | - * Scroll window |
49 | | - * |
50 | | -@@ -110,7 +110,7 @@ interface JQueryStatic { |
51 | | - * @param settings Set of settings. |
52 | | - * @param onAfter The onAfter callback. |
53 | | - */ |
| 47 | + * Scroll window |
| 48 | + * |
| 49 | +@@ -102,6 +102,6 @@ interface JQueryStatic { |
| 50 | + * @param settings Set of settings. |
| 51 | + * @param onAfter The onAfter callback. |
| 52 | + */ |
54 | 53 | - (target: any, settings: ScrollToOptions, onAfter?: Function): JQuery; |
55 | 54 | + (target: any, settings: JQueryScrollToOptions<any>, onAfter?: Function): JQuery; |
56 | | - |
57 | 55 | }; |
58 | | - |
| 56 | + } |
0 commit comments