DefinitelyTyped/types/react-headroom/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

31 lines
919 B
TypeScript

// Type definitions for react-headroom 2.2
// Project: https://kyleamathews.github.io/react-headroom/, https://github.com/kyleamathews/react-headroom
// Definitions by: Zero Cho <https://github.com/zerocho>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import { CSSProperties, ReactNode, Component } from 'react';
declare class Headroom extends Component<ReactHeadroomProps> {
constructor(props: ReactHeadroomProps);
}
export interface ReactHeadroomProps {
style?: CSSProperties;
onPin?: () => void;
onUnpin?: () => void;
onUnfix?: () => void;
upTolerance?: number;
downTolerance?: number;
disable?: boolean;
wrapperStyle?: CSSProperties;
parent?: () => any;
pinStart?: number;
calcHeightOnResize?: boolean;
disableInlineStyles?: boolean;
className?: string;
children: ReactNode;
}
export default Headroom;