Losen listener type

This commit is contained in:
Andreas Hocevar
2020-04-17 11:28:33 +02:00
parent 12043e147c
commit 9b1f8fa1d1

View File

@@ -49,7 +49,7 @@ class Observable extends EventTarget {
/** /**
* Listen for a certain type of event. * Listen for a certain type of event.
* @param {string|Array<string>} type The event type or array of event types. * @param {string|Array<string>} type The event type or array of event types.
* @param {import("./events.js").ListenerFunction} listener The listener function. * @param {function(?): ?} listener The listener function.
* @return {import("./events.js").EventsKey|Array<import("./events.js").EventsKey>} Unique key for the listener. If * @return {import("./events.js").EventsKey|Array<import("./events.js").EventsKey>} Unique key for the listener. If
* called with an array of event types as the first argument, the return * called with an array of event types as the first argument, the return
* will be an array of keys. * will be an array of keys.