- Made the options parameter optional.

This commit is contained in:
John Kokkinidis
2016-08-13 02:11:45 +03:00
parent 0bc5024c75
commit f29ae55648
+4 -6
View File
@@ -31,10 +31,10 @@ declare module "react-scroll" {
}
interface animateScroll {
scrollToTop(options: any) : void,
scrollToBottom(options: any) : void,
scrollTo(toY: number, options: any) : void,
scrollMore(toY: number, options: any) : void,
scrollToTop(options?: any) : void,
scrollToBottom(options?: any) : void,
scrollTo(toY: number, options?: any) : void,
scrollMore(toY: number, options?: any) : void,
}
interface directScroller {
@@ -50,10 +50,8 @@ declare module "react-scroll" {
const Element: Element;
const Events: Events;
const scroller: scroller;
const DirectLink: DirectLink;
const Button: Button;
const scrollSpy: scrollSpy;
const directScroller: directScroller;
const Helpers: Helpers;