feat(toolbar): adding some typing to toolbar to quiet errors

This commit is contained in:
Brandy Carney
2015-12-16 15:45:57 -05:00
parent caaa5f9bab
commit 2b44dcaaf9

View File

@@ -11,14 +11,15 @@ import {Button} from '../button/button';
* @private
*/
export class ToolbarBase extends Ion {
itemRefs = [];
titleRef = null;
titleCmp: any;
constructor(
elementRef: ElementRef,
config: Config
) {
super(elementRef, config);
this.itemRefs = [];
this.titleRef = null;
}
/**
@@ -30,6 +31,7 @@ export class ToolbarBase extends Ion {
/**
* @private
* Returns the toolbar title text if it exists or an empty string
*/
getTitleText() {
return (this.titleCmp && this.titleCmp.getTitleText()) || '';
@@ -152,6 +154,8 @@ export class ToolbarTitle extends Ion {
selector: 'ion-buttons,[menuToggle],ion-nav-items'
})
export class ToolbarItem {
inToolbar: boolean;
constructor(
elementRef: ElementRef,
@Optional() toolbar: Toolbar,