Fix more incorrect type imports

This commit is contained in:
ahocevar
2018-09-13 11:41:39 +02:00
parent 79674363e6
commit f29e6ac397
4 changed files with 9 additions and 9 deletions

View File

@@ -11,8 +11,8 @@ import {assign} from './obj.js';
/** /**
* @classdesc * @classdesc
* Events emitted by {@link module:ol/Object~BaseObject} instances are instances of this type. * Events emitted by {@link module:ol/Object~BaseObject} instances are instances of this type.
*/ */
class ObjectEvent extends Event { export class ObjectEvent extends Event {
/** /**
* @param {string} type The event type. * @param {string} type The event type.

View File

@@ -37,7 +37,7 @@ import SourceState from '../source/State.js';
* @typedef {Object} State * @typedef {Object} State
* @property {import("./Layer.js").default} layer * @property {import("./Layer.js").default} layer
* @property {number} opacity * @property {number} opacity
* @property {import("../source/Source.js").State} sourceState * @property {SourceState} sourceState
* @property {boolean} visible * @property {boolean} visible
* @property {boolean} managed * @property {boolean} managed
* @property {import("../extent.js").Extent} [extent] * @property {import("../extent.js").Extent} [extent]

View File

@@ -5,7 +5,7 @@
import {VOID} from '../functions.js'; import {VOID} from '../functions.js';
import BaseObject from '../Object.js'; import BaseObject from '../Object.js';
import {get as getProjection} from '../proj.js'; import {get as getProjection} from '../proj.js';
import SourceState from '../source/State.js'; import SourceState from './State.js';
/** /**
@@ -32,7 +32,7 @@ import SourceState from '../source/State.js';
* @typedef {Object} Options * @typedef {Object} Options
* @property {AttributionLike} [attributions] * @property {AttributionLike} [attributions]
* @property {import("../proj.js").ProjectionLike} projection * @property {import("../proj.js").ProjectionLike} projection
* @property {import("./State.js").default} [state] * @property {SourceState} [state]
* @property {boolean} [wrapX] * @property {boolean} [wrapX]
*/ */
@@ -75,7 +75,7 @@ class Source extends BaseObject {
/** /**
* @private * @private
* @type {import("./State.js").default} * @type {SourceState}
*/ */
this.state_ = options.state !== undefined ? this.state_ = options.state !== undefined ?
options.state : SourceState.READY; options.state : SourceState.READY;
@@ -137,7 +137,7 @@ class Source extends BaseObject {
/** /**
* Get the state of the source, see {@link module:ol/source/State~State} for possible states. * Get the state of the source, see {@link module:ol/source/State~State} for possible states.
* @return {import("./State.js").default} State. * @return {SourceState} State.
* @api * @api
*/ */
getState() { getState() {
@@ -173,7 +173,7 @@ class Source extends BaseObject {
/** /**
* Set the state of the source. * Set the state of the source.
* @param {import("./State.js").default} state State. * @param {SourceState} state State.
* @protected * @protected
*/ */
setState(state) { setState(state) {

View File

@@ -3,8 +3,8 @@
*/ */
/** /**
* State of the source, one of 'undefined', 'loading', 'ready' or 'error'.
* @enum {string} * @enum {string}
* State of the source, one of 'undefined', 'loading', 'ready' or 'error'.
*/ */
export default { export default {
UNDEFINED: 'undefined', UNDEFINED: 'undefined',