Export all the Event sub class
Actually only some are exported This is useful to type the received events
This commit is contained in:
@@ -155,7 +155,7 @@ const DrawEventType = {
|
||||
* Events emitted by {@link module:ol/interaction/Draw~Draw} instances are
|
||||
* instances of this type.
|
||||
*/
|
||||
class DrawEvent extends Event {
|
||||
export class DrawEvent extends Event {
|
||||
/**
|
||||
* @param {DrawEventType} type Type.
|
||||
* @param {Feature} feature The feature drawn.
|
||||
|
||||
Reference in New Issue
Block a user