diff --git a/types/react-scrollable-anchor/index.d.ts b/types/react-scrollable-anchor/index.d.ts index 9459918b15..234c6db9c0 100644 --- a/types/react-scrollable-anchor/index.d.ts +++ b/types/react-scrollable-anchor/index.d.ts @@ -11,7 +11,6 @@ export interface ScrollableAnchorProps { children?: React.ReactNode; } -declare const ScrollableAnchor: React.ComponentType; export interface ConfigureAnchorsOptions { offset?: number; @@ -19,7 +18,7 @@ export interface ConfigureAnchorsOptions { keepLastAnchorHash?: boolean; } -export default ScrollableAnchor; +export default class ScrollableAnchor extends React.Component { } export function goToTop(): void; export function configureAnchors(options: ConfigureAnchorsOptions): void; export function goToAnchor(anchorId: string, saveHashUpdate?: boolean): void;