From 5ca31e094e0ac36bd8948ba7b5dbbb6974e097f9 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Wed, 7 Mar 2018 13:43:31 +0100 Subject: [PATCH] New typedef syntax for Coordinate --- src/ol/typedefs.js | 7 ------- src/ol/types.js | 11 +++++++++++ 2 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 src/ol/types.js diff --git a/src/ol/typedefs.js b/src/ol/typedefs.js index 53d99bf7b8..778f2765af 100644 --- a/src/ol/typedefs.js +++ b/src/ol/typedefs.js @@ -177,13 +177,6 @@ ol.ColorLike; ol.Constraints; -/** - * An array of numbers representing an xy coordinate. Example: `[16, 48]`. - * @typedef {Array.} - */ -ol.Coordinate; - - /** * A function that takes a {@link ol.Coordinate} and transforms it into a * `{string}`. diff --git a/src/ol/types.js b/src/ol/types.js new file mode 100644 index 0000000000..0553668411 --- /dev/null +++ b/src/ol/types.js @@ -0,0 +1,11 @@ +/** + * @module ol/types + */ + + +/** + * An array of numbers representing an xy coordinate. Example: `[16, 48]`. + * @typedef {Array.} Coordinate + * @api + */ +