diff --git a/react-scrollbar/react-scrollbar-tests.tsx b/react-scrollbar/react-scrollbar-tests.tsx new file mode 100644 index 0000000000..784a44d899 --- /dev/null +++ b/react-scrollbar/react-scrollbar-tests.tsx @@ -0,0 +1,14 @@ +/// +/// + +import ScrollArea = require('react-scrollbar'); +import * as React from 'react'; + +let scrollArea = +
Some long content.
+
; diff --git a/react-scrollbar/react-scrollbar.d.ts b/react-scrollbar/react-scrollbar.d.ts new file mode 100644 index 0000000000..8df2435678 --- /dev/null +++ b/react-scrollbar/react-scrollbar.d.ts @@ -0,0 +1,32 @@ +// Type definitions for react-scrollbar 0.4.1 +// Project: https://github.com/souhe/reactScrollbar +// Definitions by: Stephen Jelfs +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare module "react-scrollbar" { + interface ScrollAreaProps extends __React.Props { + className?: string, + style?: __React.CSSProperties, + speed?: number, + contentClassName?: string, + contentStyle?: __React.CSSProperties, + vertical?: boolean, + verticalContainerStyle?: __React.CSSProperties, + verticalScrollbarStyle?: __React.CSSProperties, + horizontal?: boolean, + horizontalContainerStyle?: __React.CSSProperties, + horizontalScrollbarStyle?: __React.CSSProperties, + onScroll?: (value: {leftPosition: number, topPosition: number, containerHeight: number, containerWidth: number, realHeight: number, realWidth: number}) => void, + contentWindow?: any, + ownerDocument?: any, + smoothScrolling?: boolean + minScrollSize?: number, + swapWheelAxes?: boolean + } + + class ScrollArea extends __React.Component {} + + export = ScrollArea; +}