Skip to content

Commit 94ed4db

Browse files
authored
Fix: Incorrect export declaration in TS typings (#132)
Fixes #131, related to #121
1 parent 0d45b20 commit 94ed4db

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

typings.d.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
export interface ScrollIntoViewIfNeededOptions {
1+
interface ScrollIntoViewIfNeededOptions {
22
centerIfNeeded?: boolean;
33
duration?: number;
44
easing?: 'ease' | 'easeIn' | 'easeOut' | 'easeInOut' | 'linear';
55
}
66

7-
export default function(
7+
declare function scrollIntoViewIfNeeded(
88
node: Element,
99
centerIfNeeded: boolean,
1010
options?: ScrollIntoViewIfNeededOptions,
1111
finalElement?: Element
1212
): void;
13+
14+
export = scrollIntoViewIfNeeded;

0 commit comments

Comments
 (0)