diff --git a/lib/mixins/gesture-event-listeners.js b/lib/mixins/gesture-event-listeners.js index 04ad6efed8..b509e8db87 100644 --- a/lib/mixins/gesture-event-listeners.js +++ b/lib/mixins/gesture-event-listeners.js @@ -27,7 +27,7 @@ import { addListener, removeListener } from '../utils/gestures.js'; * cross-platform * gesture events to nodes */ -export const GestureEventListeners = dedupingMixin( +const _GestureEventListeners = dedupingMixin( /** * @template T * @param {function(new:T)} superClass Class to apply mixin to. @@ -73,3 +73,14 @@ export const GestureEventListeners = dedupingMixin( return GestureEventListeners; }); + +// Somehow _GestureEventListeners is incorrectly typed as *. For now add this +// cast. +/** + * @template T + * @param {function(new:T)} superClass Class to apply mixin to. + * @return {function(new:T)} superClass with mixin applied. + */ +export const GestureEventListeners = function(superClass) { + return _GestureEventListeners(superClass); +};