DefinitelyTyped/types/react-tether/index.d.ts
Ferdy Budhidharma bc0c933415 feat(react-dependents): update to TS 2.8 (part 2 of 2) (#27744)
* feat(react-dependents): update to ts 2.8

* fix version mismatches

* remove package.json

* post merge updates

* add package.json back again
2018-08-06 06:28:42 +01:00

26 lines
877 B
TypeScript

// Type definitions for react-tether 0.5
// Project: https://github.com/souporserious/react-tether
// Definitions by: Ryan Price <https://github.com/ryprice>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
export default TetherComponent;
export as namespace ReactTether;
import * as React from 'react';
import * as Tether from 'tether';
declare class TetherComponent extends React.Component<ReactTether.TetherComponentProps> { }
declare namespace ReactTether {
interface TetherComponentProps extends React.Props<TetherComponent>, Tether.ITetherOptions {
renderElementTag?: string;
renderElementTo?: string | { appendChild(element: HTMLElement): void };
id?: string;
className?: string;
style?: React.CSSProperties;
onUpdate?(): void;
onRepositioned?(): void;
}
}