Skip to content

Commit cdd4e20

Browse files
committed
Fix GestureEventListeners generated externs name.
Due to some compiler weirdness, we recently added some hacky indirection around GestureEventListeners, however this changed the name of that mixin from Analyzer's perspective by adding a leading underscore. This fixes that.
1 parent 05231a0 commit cdd4e20

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

lib/mixins/gesture-event-listeners.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { addListener, removeListener } from '../utils/gestures.js';
2727
* cross-platform
2828
* gesture events to nodes
2929
*/
30-
const _GestureEventListeners = dedupingMixin(
30+
const GestureEventListeners = dedupingMixin(
3131
/**
3232
* @template T
3333
* @param {function(new:T)} superClass Class to apply mixin to.
@@ -74,13 +74,15 @@ const _GestureEventListeners = dedupingMixin(
7474
return GestureEventListeners;
7575
});
7676

77-
// Somehow _GestureEventListeners is incorrectly typed as *. For now add this
77+
// Somehow GestureEventListeners is incorrectly typed as *. For now add this
7878
// cast.
7979
/**
8080
* @template T
8181
* @param {function(new:T)} superClass Class to apply mixin to.
8282
* @return {function(new:T)} superClass with mixin applied.
8383
*/
84-
export const GestureEventListeners = function(superClass) {
85-
return _GestureEventListeners(superClass);
84+
const _GestureEventListeners = function(superClass) {
85+
return GestureEventListeners(superClass);
8686
};
87+
88+
export {_GestureEventListeners as GestureEventListeners};

0 commit comments

Comments
 (0)