Skip to content

Commit a759aec

Browse files
authored
ts grammar fix (#181)
1 parent f8bfc5a commit a759aec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/height.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface Item {
66
height: number;
77
}
88

9-
const MyItem: React.FC<Item> = ({ id, height }, ref) => {
9+
const MyItem: React.ForwardRefRenderFunction<HTMLElement, Item> = ({ id, height }, ref) => {
1010
return (
1111
<span
1212
ref={ref}

src/ScrollBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default class ScrollBar extends React.Component<ScrollBarProps, ScrollBar
3333

3434
thumbRef = React.createRef<HTMLDivElement>();
3535

36-
visibleTimeout: NodeJS.Timeout = null;
36+
visibleTimeout: ReturnType<typeof setTimeout> = null;
3737

3838
state: ScrollBarState = {
3939
dragging: false,

0 commit comments

Comments
 (0)