From 3f4948b99d489742a228e5e5b2b52886dea0ade8 Mon Sep 17 00:00:00 2001 From: Tim Lancina Date: Tue, 19 Jan 2016 16:37:51 -0600 Subject: [PATCH] fix(animation): fix type error Closes https://github.com/driftyco/ionic/issues/5042. --- ionic/animations/animation.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ionic/animations/animation.ts b/ionic/animations/animation.ts index e01b85d32b..ff4b752211 100644 --- a/ionic/animations/animation.ts +++ b/ionic/animations/animation.ts @@ -209,15 +209,15 @@ export class Animation { get before() { return { - addClass: (className) => { + addClass: (className): Animation => { this._bfAdd.push(className); return this; }, - removeClass: (className) => { + removeClass: (className): Animation => { this._bfRmv.push(className); return this; }, - setStyles: (styles) => { + setStyles: (styles): Animation => { this._bfSty = styles; return this; } @@ -226,11 +226,11 @@ export class Animation { get after() { return { - addClass: (className) => { + addClass: (className: string): Animation => { this._afAdd.push(className); return this; }, - removeClass: (className) => { + removeClass: (className: string): Animation => { this._afRmv.push(className); return this; }