UNPKG

2.05 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// Batbold Gansukh <https://github.com/Batbold-Gansukh>
6// Raymond May Jr. <https://github.com/octatone>
7// Cheng Sieu Ly <https://github.com/chengsieuly>
8// Mercedes Retolaza <https://github.com/mretolaza>
9// Kat Busch <https://github.com/katbusch>
10// Vito Samson <https://github.com/vitosamson>
11// Karol Janyst <https://github.com/LKay>
12// Aaron Beall <https://github.com/aaronbeall>
13// Johann Rakotoharisoa <https://github.com/jrakotoharisoa>
14// Andrew Makarov <https://github.com/r3nya>
15// Duong Tran <https://github.com/t49tran>
16// Collin Green <https://github.com/collingreen>
17// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
18// TypeScript Version: 2.8
19
20import * as React from 'react';
21
22export 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]>;
23
24export type Sizes = 'xs' | 'xsmall' | 'sm' | 'small' | 'medium' | 'lg' | 'large';
25
26export interface SelectCallback extends React.EventHandler<any> {
27 (eventKey: any, e: React.SyntheticEvent<{}>): void;
28 /**
29 * @deprecated
30 * This signature is a hack so can still derive from HTMLProps.
31 * It does not reflect the underlying event and should not be used.
32 */
33 (e: React.MouseEvent<{}>): void;
34}
35
36export interface TransitionCallbacks {
37 onEnter?(node: HTMLElement): any;
38 onEntered?(node: HTMLElement): any;
39 onEntering?(node: HTMLElement): any;
40 onExit?(node: HTMLElement): any;
41 onExited?(node: HTMLElement): any;
42 onExiting?(node: HTMLElement): any;
43}
44
45export * from './lib';
46export as namespace ReactBootstrap;