UNPKG

2.13 kBTypeScriptView Raw
1// Type definitions for react-bootstrap 0.32
2// Project: https://github.com/react-bootstrap/react-bootstrap, https://react-bootstrap.github.io
3// Definitions by: Walker Burgin <https://github.com/walkerburgin>,
4// Vincent Siao <https://github.com/vsiao>,
5// Danilo Barros <https://github.com/danilojrr>,
6// Batbold Gansukh <https://github.com/Batbold-Gansukh>,
7// Raymond May Jr. <https://github.com/octatone>,
8// Cheng Sieu Ly <https://github.com/chengsieuly>,
9// Mercedes Retolaza <https://github.com/mretolaza>,
10// Kat Busch <https://github.com/katbusch>,
11// Vito Samson <https://github.com/vitosamson>,
12// Karol Janyst <https://github.com/LKay>
13// Aaron Beall <https://github.com/aaronbeall>
14// Johann Rakotoharisoa <https://github.com/jrakotoharisoa>
15// Andrew Makarov <https://github.com/r3nya>
16// Duong Tran <https://github.com/t49tran>
17// Collin Green <https://github.com/collingreen>
18// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
19// TypeScript Version: 2.8
20
21import * as React from 'react';
22
23export type Omit<T, K extends keyof T> = Pick<T, ({ [P in keyof T]: P } & { [P in K]: never } & { [x: string]: never, [x: number]: never })[keyof T]>;
24
25export type Sizes = 'xs' | 'xsmall' | 'sm' | 'small' | 'medium' | 'lg' | 'large';
26
27export interface SelectCallback extends React.EventHandler<any> {
28 (eventKey: any, e: React.SyntheticEvent<{}>): void;
29 /**
30 * @deprecated
31 * This signature is a hack so can still derive from HTMLProps.
32 * It does not reflect the underlying event and should not be used.
33 */
34 (e: React.MouseEvent<{}>): void;
35}
36
37export interface TransitionCallbacks {
38 onEnter?(node: HTMLElement): any;
39 onEntered?(node: HTMLElement): any;
40 onEntering?(node: HTMLElement): any;
41 onExit?(node: HTMLElement): any;
42 onExited?(node: HTMLElement): any;
43 onExiting?(node: HTMLElement): any;
44}
45
46export * from './lib';
47export as namespace ReactBootstrap;