Rename Style~Function path type to Style~StyleFunction

This commit is contained in:
ahocevar
2018-04-27 07:23:42 +02:00
parent 3a365fab56
commit 9bfdf818e4
9 changed files with 29 additions and 29 deletions

View File

@@ -15,7 +15,7 @@ import Stroke from '../style/Stroke.js';
* vector layer can be styled.
*
* @typedef {function((module:ol/Feature|module:ol/render/Feature), number):
* (module:ol/style/Style|Array.<module:ol/style/Style>)} Function
* (module:ol/style/Style|Array.<module:ol/style/Style>)} StyleFunction
*/
@@ -324,9 +324,9 @@ Style.prototype.setZIndex = function(zIndex) {
* Convert the provided object into a style function. Functions passed through
* unchanged. Arrays of module:ol/style/Style or single style objects wrapped in a
* new style function.
* @param {module:ol/style/Style~Function|Array.<module:ol/style/Style>|module:ol/style/Style} obj
* @param {module:ol/style/Style~StyleFunction|Array.<module:ol/style/Style>|module:ol/style/Style} obj
* A style function, a single style, or an array of styles.
* @return {module:ol/style/Style~Function} A style function.
* @return {module:ol/style/Style~StyleFunction} A style function.
*/
export function toFunction(obj) {
let styleFunction;