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

@@ -12,7 +12,7 @@ import {assign} from './obj.js';
* @classdesc
* 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.

View File

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

View File

@@ -5,7 +5,7 @@
import {VOID} from '../functions.js';
import BaseObject from '../Object.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
* @property {AttributionLike} [attributions]
* @property {import("../proj.js").ProjectionLike} projection
* @property {import("./State.js").default} [state]
* @property {SourceState} [state]
* @property {boolean} [wrapX]
*/
@@ -75,7 +75,7 @@ class Source extends BaseObject {
/**
* @private
* @type {import("./State.js").default}
* @type {SourceState}
*/
this.state_ = options.state !== undefined ?
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.
* @return {import("./State.js").default} State.
* @return {SourceState} State.
* @api
*/
getState() {
@@ -173,7 +173,7 @@ class Source extends BaseObject {
/**
* Set the state of the source.
* @param {import("./State.js").default} state State.
* @param {SourceState} state State.
* @protected
*/
setState(state) {

View File

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