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.
31 lines
919 B
TypeScript
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;
|