Revert "Merge pull request #12416 from ahocevar/eventtype-generics"
This reverts commitb6c143deb2, reversing changes made to7777821df5.
This commit is contained in:
committed by
Andreas Hocevar
parent
a2f441715b
commit
c8f43050c4
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user