update default import

This commit is contained in:
AntoineDoubovetzky
2019-03-19 11:57:46 +01:00
parent 545ee9c786
commit 1f5666e4e0
+1 -2
View File
@@ -11,7 +11,6 @@ export interface ScrollableAnchorProps {
children?: React.ReactNode;
}
declare const ScrollableAnchor: React.ComponentType<ScrollableAnchorProps>;
export interface ConfigureAnchorsOptions {
offset?: number;
@@ -19,7 +18,7 @@ export interface ConfigureAnchorsOptions {
keepLastAnchorHash?: boolean;
}
export default ScrollableAnchor;
export default class ScrollableAnchor extends React.Component<ScrollableAnchorProps> { }
export function goToTop(): void;
export function configureAnchors(options: ConfigureAnchorsOptions): void;
export function goToAnchor(anchorId: string, saveHashUpdate?: boolean): void;