From 1cd1a67d9221cbe3547ae5a4efa4ee336943e845 Mon Sep 17 00:00:00 2001 From: Alexey Svetliakov Date: Tue, 10 Jan 2017 06:26:24 +0100 Subject: [PATCH] Remove unnecessary public identifiers --- react-smooth-scrollbar/index.d.ts | 2 +- react-smooth-scrollbar/react-smooth-scrollbar-tests.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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} /> );