From 22ec46403a7ab6f0ee78f6318f46ee59ab6ad75b Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Sat, 20 Feb 2016 22:04:15 -0600 Subject: [PATCH] chore(radio): add more types --- ionic/components/radio/radio-button.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ionic/components/radio/radio-button.ts b/ionic/components/radio/radio-button.ts index 539b51b938..c9d7c899a4 100644 --- a/ionic/components/radio/radio-button.ts +++ b/ionic/components/radio/radio-button.ts @@ -47,8 +47,8 @@ import {RadioGroup} from './radio-group'; } }) export class RadioButton { - private _checked: any = false; - private _disabled: any = false; + private _checked: boolean = false; + private _disabled: boolean = false; private _labelId: string; private _value = null; @@ -58,7 +58,7 @@ export class RadioButton { id: string; /** - * @output {any} expression to be evaluated when clicked + * @output {RadioButton} expression to be evaluated when selected */ @Output() select: EventEmitter = new EventEmitter(); @@ -100,11 +100,11 @@ export class RadioButton { * @private */ @Input() - get checked() { + get checked(): boolean { return this._checked; } - set checked(isChecked) { + set checked(isChecked: boolean) { this._checked = isTrueProperty(isChecked); if (this._item) { @@ -116,11 +116,11 @@ export class RadioButton { * @private */ @Input() - get disabled() { + get disabled(): boolean { return this._disabled; } - set disabled(val) { + set disabled(val: boolean) { this._disabled = isTrueProperty(val); this._item && this._item.setCssClass('item-radio-disabled', this._disabled); }