Move WKT typedefs out of src/ol/typedefs.js

This commit is contained in:
Frederic Junod
2018-03-22 16:53:40 +01:00
parent 813faf1ac2
commit 13ca7bc52e
2 changed files with 8 additions and 8 deletions

View File

@@ -23,6 +23,12 @@ import SimpleGeometry from '../geom/SimpleGeometry.js';
* multiple features on reading.
*/
/**
* @typedef {Object} Token
* @property {number} type
* @property {number|string} [value]
* @property {number} position
*/
/**
* @const
@@ -130,7 +136,7 @@ Lexer.prototype.nextChar_ = function() {
/**
* Fetch and return the next token.
* @return {!ol.WKTToken} Next string token.
* @return {!module:ol/format/WKT~Token} Next string token.
*/
Lexer.prototype.nextToken = function() {
const c = this.nextChar_();
@@ -217,7 +223,7 @@ const Parser = function(lexer) {
this.lexer_ = lexer;
/**
* @type {ol.WKTToken}
* @type {module:ol/format/WKT~Token}
* @private
*/
this.token_;