diff --git a/types/react-bootstrap/lib/ToggleButtonGroup.d.ts b/types/react-bootstrap/lib/ToggleButtonGroup.d.ts index 1c3f6f4020..2c40c6553f 100644 --- a/types/react-bootstrap/lib/ToggleButtonGroup.d.ts +++ b/types/react-bootstrap/lib/ToggleButtonGroup.d.ts @@ -3,37 +3,36 @@ import { ButtonGroup } from 'react-bootstrap'; import { Omit } from "../index"; declare namespace ToggleButtonGroup { - interface BaseProps { - /** - * You'll usually want to use string|number|string[]|number[] here, - * but you can technically use any|any[]. - */ - defaultValue?: any; - /** - * You'll usually want to use string|number|string[]|number[] here, - * but you can technically use any|any[]. - */ - value?: any; - } + interface BaseProps { + /** + * You'll usually want to use string|number|string[]|number[] here, + * but you can technically use any|any[]. + */ + defaultValue?: any; + /** + * You'll usually want to use string|number|string[]|number[] here, + * but you can technically use any|any[]. + */ + value?: any; + } - interface RadioProps { - /** Required if `type` is set to "radio" */ - name: string; - type: "radio"; - onChange?(value: any): void; - } + interface RadioProps { + /** Required if `type` is set to "radio" */ + name: string; + type: "radio"; + onChange?(value: any): void; + } - interface CheckboxProps { - name?: string; - type: "checkbox"; - onChange?(values: any[]): void; - } - - export type ToggleButtonGroupProps = BaseProps - & (RadioProps | CheckboxProps) - & Omit, "defaultValue" | "type" | "value"> - & Omit, "defaultValue" | "type" | "value" | "onChange">; + interface CheckboxProps { + name?: string; + type: "checkbox"; + onChange?(values: any[]): void; + } + export type ToggleButtonGroupProps = BaseProps + & (RadioProps | CheckboxProps) + & Omit + & Omit, "defaultValue" | "type" | "value" | "onChange">; } -declare class ToggleButtonGroup extends React.Component { } +declare class ToggleButtonGroup extends React.Component { } export = ToggleButtonGroup; diff --git a/types/react-bootstrap/test/react-bootstrap-individual-components-tests.tsx b/types/react-bootstrap/test/react-bootstrap-individual-components-tests.tsx index c478e931b2..9457cea4a2 100644 --- a/types/react-bootstrap/test/react-bootstrap-individual-components-tests.tsx +++ b/types/react-bootstrap/test/react-bootstrap-individual-components-tests.tsx @@ -210,8 +210,20 @@ export class ReactBootstrapIndividualComponentsTest extends React.Component { - - + { }} + /> + { }} + />