DefinitelyTyped/react-scroll/index.d.ts
2016-05-12 15:20:29 -07:00

35 lines
813 B
TypeScript

// Type definitions for redux-immutable v3.0.5
// Project: https://github.com/fisshy/react-scroll
// Definitions by: Pedro Pereira <https://github.com/oizie>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as React from 'react';
interface Link extends React.ClassicComponentClass<any> { }
interface Element extends React.ClassicComponentClass<any> { }
interface scrollEvnt {
register(evtName: string, callback: Function): void,
remove(evtName: string): void
}
interface Events {
scrollEvent: scrollEvnt
}
interface scroller {
scrollTo(to: any, animate?: any, duration?: any, offset?: any): void
}
declare const Link: Link;
declare const Element: Element;
declare const Events: Events;
declare const scroller: scroller;
export {
Link,
Element,
Events,
scroller
}