Use generics to limit event types in on(), once() and un()
This commit is contained in:
@@ -41,6 +41,9 @@ import {getValues} from '../obj.js';
|
||||
* started. During a drag sequence the `handleDragEvent` user function is
|
||||
* called on `move` events. The drag sequence ends when the `handleUpEvent`
|
||||
* user function is called and returns `false`.
|
||||
*
|
||||
* @template {string} EventTypes
|
||||
* @extends Interaction<EventTypes>
|
||||
* @api
|
||||
*/
|
||||
class PointerInteraction extends Interaction {
|
||||
|
||||
Reference in New Issue
Block a user