Use generics to limit event types in on(), once() and un()

This commit is contained in:
Andreas Hocevar
2021-06-20 20:22:53 +02:00
parent cf7213c5cb
commit 018ad97f25
30 changed files with 49 additions and 7 deletions

View File

@@ -78,6 +78,8 @@ export class ObjectEvent extends Event {
* object.unset('foo').
*
* @fires ObjectEvent
* @template {string} EventTypes
* @extends Observable<'propertychange'|EventTypes>
* @api
*/
class BaseObject extends Observable {