Transformed types
Using the [ts.js codemod](https://gist.github.com/tschaub/1ea498c9d1e5268cf36d212b3949be4e): jscodeshift --transform ts.js src
This commit is contained in:
@@ -13,7 +13,7 @@ import {listen, unlistenByKey} from '../events.js';
|
||||
* @property {HTMLElement} [element] The element is the control's
|
||||
* container element. This only needs to be specified if you're developing
|
||||
* a custom control.
|
||||
* @property {function(module:ol/MapEvent)} [render] Function called when
|
||||
* @property {function(import("../MapEvent.js").default)} [render] Function called when
|
||||
* the control should be re-rendered. This is called in a `requestAnimationFrame`
|
||||
* callback.
|
||||
* @property {HTMLElement|string} [target] Specify a target if you want
|
||||
@@ -48,7 +48,7 @@ import {listen, unlistenByKey} from '../events.js';
|
||||
class Control extends BaseObject {
|
||||
|
||||
/**
|
||||
* @param {module:ol/control/Control~Options} options Control options.
|
||||
* @param {Options} options Control options.
|
||||
*/
|
||||
constructor(options) {
|
||||
|
||||
@@ -68,18 +68,18 @@ class Control extends BaseObject {
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {module:ol/PluggableMap}
|
||||
* @type {import("../PluggableMap.js").default}
|
||||
*/
|
||||
this.map_ = null;
|
||||
|
||||
/**
|
||||
* @protected
|
||||
* @type {!Array<module:ol/events~EventsKey>}
|
||||
* @type {!Array<import("../events.js").EventsKey>}
|
||||
*/
|
||||
this.listenerKeys = [];
|
||||
|
||||
/**
|
||||
* @type {function(module:ol/MapEvent)}
|
||||
* @type {function(import("../MapEvent.js").default)}
|
||||
*/
|
||||
this.render = options.render ? options.render : VOID;
|
||||
|
||||
@@ -99,7 +99,7 @@ class Control extends BaseObject {
|
||||
|
||||
/**
|
||||
* Get the map associated with this control.
|
||||
* @return {module:ol/PluggableMap} Map.
|
||||
* @return {import("../PluggableMap.js").default} Map.
|
||||
* @api
|
||||
*/
|
||||
getMap() {
|
||||
@@ -110,7 +110,7 @@ class Control extends BaseObject {
|
||||
* Remove the control from its current map and attach it to the new map.
|
||||
* Subclasses may set up event handlers to get notified about changes to
|
||||
* the map here.
|
||||
* @param {module:ol/PluggableMap} map Map.
|
||||
* @param {import("../PluggableMap.js").default} map Map.
|
||||
* @api
|
||||
*/
|
||||
setMap(map) {
|
||||
|
||||
Reference in New Issue
Block a user