@types/react-bootstrap
Advanced tools
Comparing version 0.32.12 to 0.32.13
@@ -15,3 +15,3 @@ import * as React from 'react'; | ||
indicators?: boolean; | ||
interval?: number; | ||
interval?: number | null; | ||
nextIcon?: React.ReactNode; | ||
@@ -18,0 +18,0 @@ onSelect?: SelectCallback; |
@@ -6,35 +6,34 @@ import * as React from 'react'; | ||
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; | ||
} | ||
interface CheckboxProps { | ||
name?: string; | ||
type: "checkbox"; | ||
onChange?(values: any[]): void; | ||
} | ||
export type ToggleButtonGroupProps = BaseProps | ||
& (RadioProps | CheckboxProps) | ||
& Omit<React.HTMLProps<ToggleButtonGroup>, "defaultValue" | "type" | "value"> | ||
& Omit<React.HTMLProps<ToggleButtonGroup>, "defaultValue" | "type" | "value" | "onChange">; | ||
export type ToggleButtonGroupProps = BaseProps | ||
& (RadioProps | CheckboxProps) | ||
& Omit<ButtonGroup.ButtonGroupProps, "onChange"> | ||
& Omit<React.HTMLProps<ToggleButtonGroup>, "defaultValue" | "type" | "value" | "onChange">; | ||
} | ||
declare class ToggleButtonGroup extends React.Component<ToggleButtonGroup.ToggleButtonGroupProps & ButtonGroup.ButtonGroupProps> { } | ||
declare class ToggleButtonGroup extends React.Component<ToggleButtonGroup.ToggleButtonGroupProps> { } | ||
export = ToggleButtonGroup; |
{ | ||
"name": "@types/react-bootstrap", | ||
"version": "0.32.12", | ||
"version": "0.32.13", | ||
"description": "TypeScript definitions for react-bootstrap", | ||
@@ -87,4 +87,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "114f32c9ec2daabf5e6936caec62479598e2a2a8b6f0281e123535500fba4429", | ||
"typesPublisherContentHash": "769ba0bbc61ee995d280e863acaad933f41d8e310ff2b84beb722d2d1fa20089", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Sun, 26 Aug 2018 03:30:33 GMT | ||
* Last updated: Mon, 27 Aug 2018 22:59:40 GMT | ||
* Dependencies: react | ||
@@ -14,0 +14,0 @@ * Global values: none |
67935