Use generics to limit event types in on(), once() and un()
This commit is contained in:
@@ -38,6 +38,8 @@ import {clamp} from '../math.js';
|
||||
* the options is set as a {@link module:ol/Object} property on the layer object, so
|
||||
* is observable, and has get/set accessors.
|
||||
*
|
||||
* @template {string} EventTypes
|
||||
* @extends BaseObject<EventTypes|'change:extent'|'change:maxResolution'|'change:maxZoom'|'change:minResolution'|'change:minZoom'|'change:opacity'|'change:visible'|'change:zIndex'>
|
||||
* @api
|
||||
*/
|
||||
class BaseLayer extends BaseObject {
|
||||
|
||||
Reference in New Issue
Block a user