diff --git a/externs/olx.js b/externs/olx.js index 0ace491a77..72f1cb37de 100644 --- a/externs/olx.js +++ b/externs/olx.js @@ -5,48 +5,6 @@ let olx; -/** - * @typedef {{featureNS: (Object.|string|undefined), - * featureType: (Array.|string|undefined), - * gmlFormat: (ol.format.GMLBase|undefined), - * schemaLocation: (string|undefined)}} - */ -olx.format.WFSOptions; - - -/** - * The namespace URI used for features. - * @type {Object.|string|undefined} - * @api - */ -olx.format.WFSOptions.prototype.featureNS; - - -/** - * The feature type to parse. Only used for read operations. - * @type {Array.|string|undefined} - * @api - */ -olx.format.WFSOptions.prototype.featureType; - - -/** - * The GML format to use to parse the response. Default is `ol.format.GML3`. - * @type {ol.format.GMLBase|undefined} - * @api - */ -olx.format.WFSOptions.prototype.gmlFormat; - - -/** - * Optional schemaLocation to use for serialization, this will override the - * default. - * @type {string|undefined} - * @api - */ -olx.format.WFSOptions.prototype.schemaLocation; - - /** * @typedef {{featureNS: string, * featurePrefix: string, diff --git a/externs/xol.js b/externs/xol.js index b93b7f3e60..cd9202a500 100644 --- a/externs/xol.js +++ b/externs/xol.js @@ -1,14 +1,4 @@ -/** - * @typedef {Object} format_WFSOptions - * @property {Object.|string|undefined} featureNS The namespace URI used for features. - * @property {Array.|string|undefined} featureType The feature type to parse. Only used for read operations. - * @property {ol.format.GMLBase|undefined} gmlFormat The GML format to use to parse the response. Default is `ol.format.GML3`. - * @property {string|undefined} schemaLocation Optional schemaLocation to use for serialization, this will override the - * default. - */ - - /** * @typedef {Object} format_WFSWriteGetFeatureOptions * @property {string} featureNS The namespace URI used for features. diff --git a/src/ol/format/WFS.js b/src/ol/format/WFS.js index 6b8772bcfd..9cc0a36d11 100644 --- a/src/ol/format/WFS.js +++ b/src/ol/format/WFS.js @@ -17,6 +17,19 @@ import {createElementNS, isDocument, isNode, makeArrayPusher, makeChildAppender, pushParseAndPop, pushSerializeAndPop, setAttributeNS} from '../xml.js'; +/** + * @typedef {Object} Options + * @property {Object.|string|undefined} featureNS The namespace + * URI used for features. + * @property {Array.|string|undefined} featureType The feature type to parse. + * Only used for read operations. + * @property {ol.format.GMLBase|undefined} gmlFormat The GML format to use to parse + * the response. Default is `ol.format.GML3`. + * @property {string|undefined} schemaLocation Optional schemaLocation to use for + * serialization, this will override the default. + */ + + /** * @type {string} */ @@ -71,8 +84,7 @@ const DEFAULT_VERSION = '1.1.0'; * Also see {@link ol.format.GMLBase} which is used by this format. * * @constructor - * @param {olx.format.WFSOptions=} opt_options - * Optional configuration object. + * @param {module:ol/format/WFS~Options=} opt_options Optional configuration object. * @extends {ol.format.XMLFeature} * @api */