forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
react-scroll.d.ts
38 lines (30 loc) · 960 Bytes
/
react-scroll.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// 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
/// <reference path="../react/react.d.ts" />
declare module "react-scroll" {
import React = __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
}
const Link: Link;
const Element: Element;
const Events: Events;
const scroller: scroller;
export {
Link,
Element,
Events,
scroller
}
}