You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Some people might use both "auto" and "ponyfill" modes in the same file, so we also provide a named export so
56
-
// that imports in userland code (like if they use native smooth scrolling on some browsers, and the ponyfill for everything else)
57
-
// the named export allows this `import {auto as autoScrollIntoView, ponyfill as smoothScrollIntoView} from ...`
58
-
/** @public */
59
-
exportdefaultfunctionscrollIntoView<T>(
60
-
target: Element,
61
-
options: CustomBehaviorOptions<T>
62
-
): T
63
-
/** @public */
64
-
exportdefaultfunctionscrollIntoView(
74
+
/**
75
+
* Scrolls the given element into view, with options for when, and how.
76
+
* Supports the same `options` as [`Element.prototype.scrollIntoView`](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView) with additions such as `scrollMode`, `behavior: Function` and `skipOverflowHiddenElements`.
77
+
* @public
78
+
*/
79
+
functionscrollIntoView(
65
80
target: Element,
66
81
options?: StandardBehaviorOptions|boolean
67
82
): void
68
-
/** @public */
69
-
exportdefaultfunctionscrollIntoView<T=unknown>(
83
+
/**
84
+
* Scrolls the given element into view, with options for when, and how.
85
+
* Supports the same `options` as [`Element.prototype.scrollIntoView`](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView) with additions such as `scrollMode`, `behavior: Function` and `skipOverflowHiddenElements`.
86
+
*
87
+
* You can set the expected return type for `behavior: Function`:
0 commit comments