mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Remove unnecessary public identifiers
This commit is contained in:
Vendored
+1
-1
@@ -32,7 +32,7 @@ declare class Scrollbar extends React.Component<Scrollbar.ScrollbarProps, {}> {
|
||||
/**
|
||||
* Scrollbar instance
|
||||
*/
|
||||
public readonly scrollbar: SmoothScrollbar;
|
||||
readonly scrollbar: SmoothScrollbar;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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} />
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user