From 7906e90ae05aaf6c71a6bc65725e9e8d3548b06f Mon Sep 17 00:00:00 2001 From: Robert Coie Date: Wed, 11 Jan 2017 14:10:34 -0800 Subject: [PATCH] chore: add void return value for some callback signatures (#9967) --- src/components/content/content.ts | 2 +- src/platform/platform.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/content/content.ts b/src/components/content/content.ts index 46db2b9bc1..f4561ba775 100644 --- a/src/components/content/content.ts +++ b/src/components/content/content.ts @@ -414,7 +414,7 @@ export class Content extends Ion implements OnDestroy, OnInit { /** * @private */ - onScrollElementTransitionEnd(callback: {(ev: TransitionEvent)}) { + onScrollElementTransitionEnd(callback: {(ev: TransitionEvent): void}) { this._plt.transitionEnd(this._scrollEle, callback); } diff --git a/src/platform/platform.ts b/src/platform/platform.ts index fa2825f5f1..0667a996b0 100644 --- a/src/platform/platform.ts +++ b/src/platform/platform.ts @@ -638,7 +638,7 @@ export class Platform { * If options are not supported, then just return a boolean which * represents "capture". Returns a method to remove the listener. */ - registerListener(ele: any, eventName: string, callback: {(ev?: UIEvent)}, opts: EventListenerOptions, unregisterListenersCollection?: Function[]): Function { + registerListener(ele: any, eventName: string, callback: {(ev?: UIEvent): void}, opts: EventListenerOptions, unregisterListenersCollection?: Function[]): Function { // use event listener options when supported // otherwise it's just a boolean for the "capture" arg const listenerOpts: any = this._uiEvtOpts ? { @@ -673,7 +673,7 @@ export class Platform { /** * @private */ - transitionEnd(el: HTMLElement, callback: {(ev?: TransitionEvent)}, zone = true) { + transitionEnd(el: HTMLElement, callback: {(ev?: TransitionEvent): void}, zone = true) { const unRegs: Function[] = []; function unregister() {