// Type definitions for react-bootstrap // Project: https://github.com/react-bootstrap/react-bootstrap // Definitions by: Walker Burgin , Vincent Siao , Danilo Barros , Batbold Gansukh // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// declare namespace ReactBootstrap { // Import React import React = __React; type Sizes = 'xs' | 'xsmall' | 'sm' | 'small' | 'lg' | 'large'; // Change onSelect signature to be (eventKey: any, event: SyntheticEvent) => any on all React-Bootstrap components, instead of the old inconsistent mishmash (#1604, #1677, #1756) /** ( eventKey:any, e:React.SyntheticEvent ):void */ interface SelectCallback { ( eventKey:any, e:React.SyntheticEvent ):void; /** @deprecated This signature is a hack so can still derive from HTMLProps. It does not reflect the underlying event and should not be used. */ ( e:React.MouseEvent ):void; } interface TransitionCallbacks { onEnter?: Function; onEntered?: Function; onEntering?: Function; onExit?: Function; onExited?: Function; onExiting?: Function; } // interface AccordionProps extends React.HTMLProps { bsSize?: Sizes; bsStyle?: string; collapsible?: boolean; defaultExpanded?: boolean; eventKey?: any; expanded?: boolean; footer?: any; // TODO: Add more specific type header?: any; // TODO: Add more specific type } type Accordion = React.ClassicComponent; var Accordion: React.ClassicComponentClass; // interface BreadcrumbProps extends React.Props { bsClass?: string; } interface BreadcrumbClass extends React.ClassicComponentClass { Item: typeof BreadcrumbItem; } type Breadcrumb = React.ClassicComponent; var Breadcrumb: BreadcrumbClass; // interface BreadcrumbItemProps extends React.Props { active?: boolean; id?: string | number; href?: string; title?: React.ReactNode; target?: string; } type BreadcrumbItem = React.ClassicComponent; var BreadcrumbItem: React.ClassicComponentClass; //