Remove unnecessary public identifiers

This commit is contained in:
Alexey Svetliakov
2017-01-10 06:26:24 +01:00
parent 4c2595cf69
commit 1cd1a67d92
2 changed files with 4 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ declare class Scrollbar extends React.Component<Scrollbar.ScrollbarProps, {}> {
/**
* Scrollbar instance
*/
public readonly scrollbar: SmoothScrollbar;
readonly scrollbar: SmoothScrollbar;
}

View File

@@ -5,13 +5,13 @@ import * as SmoothScrollbar from "react-smooth-scrollbar";
<SmoothScrollbar speed={10} overscrollEffect="bounce" />;
class Test extends React.Component<void, void> {
public ref: SmoothScrollbar;
ref: SmoothScrollbar;
public componentDidMount() {
componentDidMount() {
this.ref.scrollbar.scrollTo(0, 500);
}
public render() {
render() {
return (
<SmoothScrollbar ref={ref => this.ref = ref} />
);