Use generics to limit event types in on(), once() and un()
This commit is contained in:
@@ -41,6 +41,8 @@ import {removeNode} from '../dom.js';
|
||||
* You can also extend this base for your own control class. See
|
||||
* examples/custom-controls for an example of how to do this.
|
||||
*
|
||||
* @template {string} EventTypes
|
||||
* @extends BaseObject<EventTypes>
|
||||
* @api
|
||||
*/
|
||||
class Control extends BaseObject {
|
||||
|
||||
Reference in New Issue
Block a user