UNPKG

951 BTypeScriptView Raw
1import * as React from "react";
2
3export type Omit<T, K extends keyof T> = Pick<
4 T,
5 ({ [P in keyof T]: P } & { [P in K]: never } & { [x: string]: never; [x: number]: never })[keyof T]
6>;
7
8export type Sizes = "xs" | "xsmall" | "sm" | "small" | "medium" | "lg" | "large";
9
10export interface SelectCallback extends React.EventHandler<any> {
11 (eventKey: any, e: React.SyntheticEvent<{}>): void;
12 /**
13 * @deprecated
14 * This signature is a hack so can still derive from HTMLProps.
15 * It does not reflect the underlying event and should not be used.
16 */
17 (e: React.MouseEvent<{}>): void;
18}
19
20export interface TransitionCallbacks {
21 onEnter?(node: HTMLElement): any;
22 onEntered?(node: HTMLElement): any;
23 onEntering?(node: HTMLElement): any;
24 onExit?(node: HTMLElement): any;
25 onExited?(node: HTMLElement): any;
26 onExiting?(node: HTMLElement): any;
27}
28
29export * from "./lib";
30export as namespace ReactBootstrap;