mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Get tests passing again
This commit is contained in:
Vendored
+11
-2
@@ -8,7 +8,7 @@ export = ReactBootstrap;
|
||||
|
||||
declare namespace ReactBootstrap {
|
||||
|
||||
type Sizes = 'xs' | 'xsmall' | 'sm' | 'small' | 'lg' | 'large';
|
||||
type Sizes = 'xs' | 'xsmall' | 'sm' | 'small' | 'medium' | '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)
|
||||
@@ -307,6 +307,13 @@ declare namespace ReactBootstrap {
|
||||
// <Modal.Dialog />
|
||||
interface ModalDialogProps extends React.HTMLProps<ModalDialog> {
|
||||
// TODO: Add more specific type
|
||||
onHide?: Function;
|
||||
onEnter?: Function;
|
||||
onEntered?: Function;
|
||||
onEntering?: Function;
|
||||
onExit?: Function;
|
||||
onExited?: Function;
|
||||
onExiting?: Function;
|
||||
}
|
||||
type ModalDialog = React.ClassicComponent<ModalDialogProps, {}>;
|
||||
var ModalDialog: React.ClassicComponentClass<ModalDialogProps>;
|
||||
@@ -569,11 +576,13 @@ declare namespace ReactBootstrap {
|
||||
interface NavDropdownBaseProps
|
||||
extends DropdownBaseProps {
|
||||
noCaret?: boolean;
|
||||
eventKey?: any;
|
||||
}
|
||||
type NavDropdownProps = NavDropdownBaseProps & React.HTMLProps<NavDropdown>;
|
||||
class NavDropdown
|
||||
extends React.Component<NavDropdownProps, {}>
|
||||
{ }
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
// <Tabs />
|
||||
|
||||
@@ -170,7 +170,7 @@ export class ReactBootstrapTest extends Component<any, any> {
|
||||
</div>
|
||||
|
||||
<div style={style}>
|
||||
<DropdownButton bsStyle={'default'} title={'hello'} key={0} id={0}>
|
||||
<DropdownButton bsStyle={'default'} title={'hello'} key={0} id={"0"}>
|
||||
<MenuItem eventKey='1'>Action</MenuItem>
|
||||
<MenuItem eventKey='2'>Another action</MenuItem>
|
||||
<MenuItem eventKey='3' active>Active Item</MenuItem>
|
||||
|
||||
Reference in New Issue
Block a user