Skip to content

Commit ac556db

Browse files
committed
Added missing typescript methods (Issue #11)
1 parent 6564a97 commit ac556db

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.2.0] - 2019-10-22
8+
### Added
9+
- Added missing methods to typescript defs [\#11](https://github.com/gitbrent/bootstrap-switch-button-react/issue/11) ([evark](https://github.com/evark))
10+
711
## [1.1.0] - 2019-07-29
812
### Added
913
- Added new typescript defs (`bootstrap-switch-button-react.d.ts`)

lib/bootstrap-switch-button-react.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,15 @@ interface BootstrapSwitchButtonProps {
2626
*/
2727
onChange?: (checked: boolean) => void;
2828
checked?: boolean;
29+
disabled?: boolean;
2930
onlabel?: string;
3031
offlabel?: string;
31-
offstyle?: Colors | ColorsOutline;
3232
onstyle?: Colors | ColorsOutline;
33+
offstyle?: Colors | ColorsOutline;
34+
size?: "xs" | "sm" | "lg";
3335
style?: string;
36+
width: number;
37+
height: number;
3438
}
3539

3640
declare class BootstrapSwitchButton extends React.Component<

0 commit comments

Comments
 (0)