DefinitelyTyped/types/react-sticky-box/index.d.ts
Nathan Shively-Sanders f0ce987bc1 Update project urls to match NPM url
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.
2019-02-11 17:10:55 -08:00

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;