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

@@ -288,6 +288,7 @@ const DEFAULT_MIN_ZOOM = 0;
* the snap angle is 0), an animation will be triggered at the interaction end to
* put back the view to a stable state;
*
* @extends BaseObject<'change:center'|'change:resolution'|'change:rotation'>
* @api
*/
class View extends BaseObject {