fix(all): updated tslint rules to latest

This commit is contained in:
Manu Mtz.-Almeida
2018-07-29 13:03:47 +02:00
parent d1969bdf1d
commit 92e21a8cf3
112 changed files with 546 additions and 574 deletions

View File

@ -4,13 +4,13 @@ import { Animation } from '../../../interface';
/**
* iOS Picker Enter Animation
*/
export function iosEnterAnimation(Animation: Animation, baseEl: HTMLElement): Promise<Animation> {
const baseAnimation = new Animation();
export function iosEnterAnimation(AnimationC: Animation, baseEl: HTMLElement): Promise<Animation> {
const baseAnimation = new AnimationC();
const backdropAnimation = new Animation();
const backdropAnimation = new AnimationC();
backdropAnimation.addElement(baseEl.querySelector('ion-backdrop'));
const wrapperAnimation = new Animation();
const wrapperAnimation = new AnimationC();
wrapperAnimation.addElement(baseEl.querySelector('.picker-wrapper'));
backdropAnimation.fromTo('opacity', 0.01, 0.26);

View File

@ -4,13 +4,13 @@ import { Animation } from '../../../interface';
/**
* iOS Picker Leave Animation
*/
export function iosLeaveAnimation(Animation: Animation, baseEl: HTMLElement): Promise<Animation> {
const baseAnimation = new Animation();
export function iosLeaveAnimation(AnimationC: Animation, baseEl: HTMLElement): Promise<Animation> {
const baseAnimation = new AnimationC();
const backdropAnimation = new Animation();
const backdropAnimation = new AnimationC();
backdropAnimation.addElement(baseEl.querySelector('ion-backdrop'));
const wrapperAnimation = new Animation();
const wrapperAnimation = new AnimationC();
wrapperAnimation.addElement(baseEl.querySelector('.picker-wrapper'));
backdropAnimation.fromTo('opacity', 0.26, 0.01);

View File

@ -3,7 +3,7 @@ export interface PickerButton {
text?: string;
role?: string;
cssClass?: string | string[];
handler?: (value: any) => boolean|void;
handler?: (value: any) => boolean | void;
}
export interface PickerOptions {

View File

@ -363,13 +363,10 @@ export class Picker implements OverlayInterface {
}
function buttonWrapperClass(button: PickerButton): CssClassMap {
const buttonClass: CssClassMap = {
return {
[`picker-toolbar-${button.role}`]: !!button.role,
'picker-toolbar-button': true
};
if (button.role) {
buttonClass[`picker-toolbar-${button.role}`] = true;
}
return buttonClass;
}
function buttonClass(button: PickerButton): CssClassMap {