chore: add void return value for some callback signatures (#9967)

This commit is contained in:
Robert Coie
2017-01-11 14:10:34 -08:00
committed by Brandy Carney
parent 391cd70879
commit 7906e90ae0
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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() {