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