File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.4" ,
4
4
"description" : " Element.scrollIntoViewIfNeeded ponyfill that can animate the scrolling" ,
5
5
"main" : " dist/bundle.js" ,
6
+ "typings" : " typings.d.ts" ,
6
7
"scripts" : {
7
8
"test" : " echo \" Error: no test specified\" && exit 1" ,
8
9
"build" : " rollup src/index.js --format cjs -c --output dist/bundle.js && rollup test/index.js -c -f umd --output test/bundle.js" ,
Original file line number Diff line number Diff line change 1
- module 'scroll-into-view-if-needed' {
1
+ declare module 'scroll-into-view-if-needed' {
2
2
interface ScrollIntoViewIfNeededOptions {
3
3
centerIfNeeded : boolean ;
4
4
duration : number ;
@@ -8,14 +8,10 @@ module 'scroll-into-view-if-needed' {
8
8
interface ScrollIntoViewIfNeededFunction {
9
9
(
10
10
node : Element ,
11
- centerIfNeeded : boolean = false ,
12
- options : ScrollIntoViewIfNeededOptions = {
13
- centerIfNeeded : false ,
14
- duration : 0 ,
15
- easing : 'ease' ,
16
- }
11
+ centerIfNeeded : boolean ,
12
+ options ?: ScrollIntoViewIfNeededOptions ,
17
13
) : void ;
18
14
}
19
15
const ScrollIntoViewIfNeeded : ScrollIntoViewIfNeededFunction ;
20
- export default ScrollIntoViewIfNeeded ;
16
+ export = ScrollIntoViewIfNeeded ;
21
17
}
You can’t perform that action at this time.
0 commit comments