We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a697e47 commit 5058765Copy full SHA for 5058765
typings.d.ts
@@ -0,0 +1,21 @@
1
+module 'scroll-into-view-if-needed' {
2
+ interface ScrollIntoViewIfNeededOptions {
3
+ centerIfNeeded: boolean;
4
+ duration: number;
5
+ easing: 'ease' | 'easeIn' | 'easeOut' | 'easeInOut' | 'linear';
6
+ }
7
+
8
+ interface ScrollIntoViewIfNeededFunction {
9
+ (
10
+ node: Element,
11
+ centerIfNeeded: boolean = false,
12
+ options: ScrollIntoViewIfNeededOptions = {
13
+ centerIfNeeded: false,
14
+ duration: 0,
15
+ easing: 'ease',
16
17
+ ): void;
18
19
+ const ScrollIntoViewIfNeeded: ScrollIntoViewIfNeededFunction;
20
+ export default ScrollIntoViewIfNeeded;
21
+}
0 commit comments