mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
Remove unnecessary public identifiers
This commit is contained in:
2
react-smooth-scrollbar/index.d.ts
vendored
2
react-smooth-scrollbar/index.d.ts
vendored
@@ -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