mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
chore: add void return value for some callback signatures (#9967)
This commit is contained in:

committed by
Brandy Carney

parent
391cd70879
commit
7906e90ae0
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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() {
|
||||
|
Reference in New Issue
Block a user