diff --git a/src/ui/events.ts b/src/ui/events.ts index 8f603be7b85..5a36464f5c8 100644 --- a/src/ui/events.ts +++ b/src/ui/events.ts @@ -982,7 +982,7 @@ export type MapEvents = { * console.log('A zoomstart event occurred.'); * }); */ - 'zoomstart': {originalEvent?: WheelEvent | TouchEvent} | void; + 'zoomstart': {originalEvent?: WheelEvent | TouchEvent}; /** * Fired repeatedly during an animated transition from one zoom level to another, @@ -1002,7 +1002,7 @@ export type MapEvents = { * }); * @see [Example: Update a choropleth layer by zoom level](https://www.mapbox.com/mapbox-gl-js/example/updating-choropleth/) */ - 'zoom': {originalEvent?: WheelEvent | TouchEvent} | void; + 'zoom': {originalEvent?: WheelEvent | TouchEvent}; /** * Fired just after the map completes a transition from one zoom level to another @@ -1023,7 +1023,7 @@ export type MapEvents = { * console.log('A zoomend event occurred.'); * }); */ - 'zoomend': {originalEvent?: WheelEvent | TouchEvent} | void; + 'zoomend': {originalEvent?: WheelEvent | TouchEvent}; /** * Fired when a "drag to rotate" interaction starts. See {@link DragRotateHandler}. @@ -1096,7 +1096,7 @@ export type MapEvents = { * console.log('A pitchstart event occurred.'); * }); */ - 'pitchstart': {originalEvent?: MouseEvent | TouchEvent} | void; + 'pitchstart': {originalEvent?: MouseEvent | TouchEvent}; /** * Fired repeatedly during the map's pitch (tilt) animation between @@ -1116,7 +1116,7 @@ export type MapEvents = { * console.log('A pitch event occurred.'); * }); */ - 'pitch': {originalEvent?: MouseEvent | TouchEvent} | void; + 'pitch': {originalEvent?: MouseEvent | TouchEvent}; /** * Fired immediately after the map's pitch (tilt) finishes changing as @@ -1135,7 +1135,7 @@ export type MapEvents = { * console.log('A pitchend event occurred.'); * }); */ - 'pitchend': {originalEvent?: MouseEvent | TouchEvent} | void; + 'pitchend': {originalEvent?: MouseEvent | TouchEvent}; /** * Fired when a "box zoom" interaction starts. See {@link BoxZoomHandler}. @@ -1207,7 +1207,7 @@ export type MapEvents = { * console.log('A resize event occurred.'); * }); */ - 'resize': object | void; + 'resize': object; /** @section Lifecycle */