Skip to content

Commit dcad15d

Browse files
authored
Merge pull request #71 from ganderzz/feature/add-scrollarea-types
Add Typescript type defs for ScrollArea
2 parents 116486c + be14445 commit dcad15d

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

src/definitions/ScrollArea.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import * as React from "react";
2+
3+
interface IProps {
4+
id?: string;
5+
}
6+
7+
declare var ScrollArea: React.ReactElement<IProps>;
8+
export default ScrollArea;

src/definitions/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
export { default as ScrollTo } from "./ScrollTo";
22
export { default as ScrollToHOC } from "./ScrollToHOC";
3+
export { default as ScrollArea } from "./ScrollArea";

src/index.d.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import { ScrollTo, ScrollToHOC } from "./definitions";
1+
import { ScrollTo, ScrollToHOC, ScrollArea } from "./definitions";
22

3-
export {
4-
ScrollTo,
5-
ScrollToHOC
6-
};
3+
export { ScrollTo, ScrollToHOC, ScrollArea };

0 commit comments

Comments
 (0)