Merge pull request #10710 from ahocevar/fix-stylefunction-type

Fix stylefunction return type
This commit is contained in:
Andreas Hocevar
2020-02-20 12:35:52 +01:00
committed by GitHub

View File

@@ -16,7 +16,7 @@ import Stroke from './Stroke.js';
* vector layer can be styled. If the function returns `undefined`, the
* feature will not be rendered.
*
* @typedef {function(import("../Feature.js").FeatureLike, number):(Style|Array<Style>)|undefined} StyleFunction
* @typedef {function(import("../Feature.js").FeatureLike, number):(Style|Array<Style>|void)} StyleFunction
*/
/**