mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Note that this *trivially* updates project urls by adding the NPM url to the end, even when the urls are almost identical or the DT one is outdated. I'll clean up the urls in a later commit. This PR is unfinished! Please do not merge it yet.
23 lines
751 B
TypeScript
23 lines
751 B
TypeScript
// Type definitions for react-sticky-box 0.7
|
|
// Project: https://github.com/codecks-io/react-sticky-box, https://github.com/danielberndt/react-sticky-box
|
|
// Definitions by: Konstantin Lebedev <https://github.com/koss-lebedev>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
import * as React from "react";
|
|
|
|
declare namespace ReactStickyBox {
|
|
type StickyBoxMode = 'relative' | 'stickyBottom' | 'stickyTop';
|
|
|
|
interface StickyBoxProps {
|
|
bottom?: boolean;
|
|
offsetTop?: number;
|
|
offsetBottom?: number;
|
|
onChangeMode?: (oldMode: StickyBoxMode, newMode: StickyBoxMode) => void;
|
|
}
|
|
}
|
|
|
|
declare const ReactStickyBox: React.ComponentClass<ReactStickyBox.StickyBoxProps>;
|
|
|
|
export = ReactStickyBox;
|