Fix jsdoc type notation

This commit is contained in:
Frederic Junod
2018-10-15 16:23:16 +02:00
parent 594a921598
commit 6b24760299
2 changed files with 14 additions and 15 deletions
+11 -12
View File
@@ -2,7 +2,7 @@
* @module ol/format/GML32 * @module ol/format/GML32
*/ */
import GML3 from './GML3.js'; import GML3 from './GML3.js';
import GMLBase from './GML3.js'; import GMLBase from './GMLBase.js';
import {makeArrayPusher, makeReplacer, makeChildAppender} from '../xml.js'; import {makeArrayPusher, makeReplacer, makeChildAppender} from '../xml.js';
import {writeStringTextNode} from '../format/xsd.js'; import {writeStringTextNode} from '../format/xsd.js';
@@ -14,17 +14,16 @@ import {writeStringTextNode} from '../format/xsd.js';
class GML32 extends GML3 { class GML32 extends GML3 {
/** /**
* @param {module:ol/format/GMLBase~Options=} opt_options Optional configuration object. * @param {import("./GMLBase.js").Options=} opt_options Optional configuration object.
*/ */
constructor(opt_options) { constructor(opt_options) {
const options = /** @type {olx.format.GMLOptions} */ const options = /** @type {import("./GMLBase.js").Options} */ (opt_options ? opt_options : {});
(opt_options ? opt_options : {});
super(options); super(options);
/** /**
* @inheritDoc * @inheritDoc
*/ */
this.schemaLocation = options.schemaLocation ? this.schemaLocation = options.schemaLocation ?
options.schemaLocation : this.namespace + ' http://schemas.opengis.net/gml/3.2.1/gml.xsd'; options.schemaLocation : this.namespace + ' http://schemas.opengis.net/gml/3.2.1/gml.xsd';
@@ -290,7 +289,7 @@ GML32.prototype.RING_PARSERS = {
}; };
/** /**
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object.<string, Object.<string, import("../xml.js").Serializer>>}
* @private * @private
*/ */
GML32.prototype.RING_SERIALIZERS_ = { GML32.prototype.RING_SERIALIZERS_ = {
@@ -302,7 +301,7 @@ GML32.prototype.RING_SERIALIZERS_ = {
/** /**
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object.<string, Object.<string, import("../xml.js").Serializer>>}
* @private * @private
*/ */
GML32.prototype.ENVELOPE_SERIALIZERS_ = { GML32.prototype.ENVELOPE_SERIALIZERS_ = {
@@ -314,7 +313,7 @@ GML32.prototype.ENVELOPE_SERIALIZERS_ = {
/** /**
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object.<string, Object.<string, import("../xml.js").Serializer>>}
* @private * @private
*/ */
GML32.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS_ = { GML32.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS_ = {
@@ -328,7 +327,7 @@ GML32.prototype.SURFACEORPOLYGONMEMBER_SERIALIZERS_ = {
/** /**
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object.<string, Object.<string, import("../xml.js").Serializer>>}
* @private * @private
*/ */
GML32.prototype.POINTMEMBER_SERIALIZERS_ = { GML32.prototype.POINTMEMBER_SERIALIZERS_ = {
@@ -340,7 +339,7 @@ GML32.prototype.POINTMEMBER_SERIALIZERS_ = {
/** /**
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object.<string, Object.<string, import("../xml.js").Serializer>>}
* @private * @private
*/ */
GML32.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS_ = { GML32.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS_ = {
@@ -353,7 +352,7 @@ GML32.prototype.LINESTRINGORCURVEMEMBER_SERIALIZERS_ = {
}; };
/** /**
* @type {Object.<string, Object.<string, module:ol/xml~Serializer>>} * @type {Object.<string, Object.<string, import("../xml.js").Serializer>>}
* @private * @private
*/ */
GML32.prototype.GEOMETRY_SERIALIZERS_ = { GML32.prototype.GEOMETRY_SERIALIZERS_ = {
+3 -3
View File
@@ -237,7 +237,7 @@ class GMLBase extends XMLFeature {
* @param {Element} node Node. * @param {Element} node Node.
* @param {Array<*>} objectStack Object stack. * @param {Array<*>} objectStack Object stack.
* @param {boolean} asFeature whether result should be wrapped as a feature. * @param {boolean} asFeature whether result should be wrapped as a feature.
* @return {module:ol/Feature} Feature * @return {Feature} Feature
*/ */
readFeatureElementInternal(node, objectStack, asFeature) { readFeatureElementInternal(node, objectStack, asFeature) {
let geometryName; let geometryName;
@@ -302,8 +302,8 @@ class GMLBase extends XMLFeature {
/** /**
* @param {Node} node Node. * @param {Node} node Node.
* @param {Array.<*>} objectStack Object stack. * @param {Array<*>} objectStack Object stack.
* @return {module:ol/Feature} Feature. * @return {Feature} Feature.
*/ */
readFeatureElement(node, objectStack) { readFeatureElement(node, objectStack) {
return this.readFeatureElementInternal(node, objectStack, true); return this.readFeatureElementInternal(node, objectStack, true);