Revert "Merge pull request #12416 from ahocevar/eventtype-generics"

This reverts commit b6c143deb2, reversing
changes made to 7777821df5.
This commit is contained in:
Simon Seyock
2021-06-21 17:20:04 +02:00
committed by Andreas Hocevar
parent a2f441715b
commit c8f43050c4
30 changed files with 7 additions and 49 deletions
-2
View File
@@ -38,8 +38,6 @@ 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 {
+1 -1
View File
@@ -45,7 +45,7 @@ import {assign} from '../obj.js';
* options means that `title` is observable, and has get/set accessors.
*
* @template {import("../source/Tile.js").default} TileSourceType
* @extends Layer<TileSourceType,'preload'|'useInterimTilesOnError'>
* @extends {Layer<TileSourceType>}
* @api
*/
class BaseTileLayer extends Layer {
+1 -2
View File
@@ -73,8 +73,7 @@ const Property = {
* options means that `title` is observable, and has get/set accessors.
*
* @template {import("../source/Vector.js").default|import("../source/VectorTile.js").default} VectorSourceType
* @template {string} EventTypes
* @extends Layer<VectorSourceType,EventTypes>
* @extends {Layer<VectorSourceType>}
* @api
*/
class BaseVectorLayer extends Layer {
-2
View File
@@ -84,8 +84,6 @@ import {listen, unlistenByKey} from '../events.js';
* @fires import("../render/Event.js").RenderEvent#postrender
*
* @template {import("../source/Source.js").default} SourceType
* @template {string} EventTypes
* @extends BaseLayer<EventTypes|'postrender'|'prerender'>
* @api
*/
class Layer extends BaseLayer {
+1 -1
View File
@@ -75,7 +75,7 @@ import {assign} from '../obj.js';
* options means that `title` is observable, and has get/set accessors.
*
* @param {Options} [opt_options] Options.
* @extends BaseVectorLayer<import("../source/VectorTile.js").default,'change:preload'|'change:useInterimTilesOnError'>
* @extends {BaseVectorLayer<import("../source/VectorTile.js").default>}
* @api
*/
class VectorTileLayer extends BaseVectorLayer {