mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
26 lines
900 B
TypeScript
26 lines
900 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.1
|
|
|
|
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, null> { }
|
|
|
|
declare namespace ReactTether {
|
|
export 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;
|
|
}
|
|
}
|