Skip to content

Commit 5058765

Browse files
forabistipsan
authored andcommitted
Add TypeScript definition file (#73)
1 parent a697e47 commit 5058765

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

typings.d.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)