diff --git a/react-smooth-scrollbar/index.d.ts b/react-smooth-scrollbar/index.d.ts index 3c4d541294..df5746f9d4 100644 --- a/react-smooth-scrollbar/index.d.ts +++ b/react-smooth-scrollbar/index.d.ts @@ -32,7 +32,7 @@ declare class Scrollbar extends React.Component { /** * Scrollbar instance */ - public readonly scrollbar: SmoothScrollbar; + readonly scrollbar: SmoothScrollbar; } diff --git a/react-smooth-scrollbar/react-smooth-scrollbar-tests.tsx b/react-smooth-scrollbar/react-smooth-scrollbar-tests.tsx index f46efe0e62..956df59f9c 100644 --- a/react-smooth-scrollbar/react-smooth-scrollbar-tests.tsx +++ b/react-smooth-scrollbar/react-smooth-scrollbar-tests.tsx @@ -5,13 +5,13 @@ import * as SmoothScrollbar from "react-smooth-scrollbar"; ; class Test extends React.Component { - public ref: SmoothScrollbar; + ref: SmoothScrollbar; - public componentDidMount() { + componentDidMount() { this.ref.scrollbar.scrollTo(0, 500); } - public render() { + render() { return ( this.ref = ref} /> );