Use FeatureLike typedef

This commit is contained in:
Frederic Junod
2018-12-12 15:03:54 +01:00
parent daa92c105d
commit 39a21f177d
4 changed files with 18 additions and 18 deletions

View File

@@ -153,7 +153,7 @@ class ExecutorGroup {
* @param {number} rotation Rotation.
* @param {number} hitTolerance Hit tolerance in pixels.
* @param {Object<string, boolean>} skippedFeaturesHash Ids of features to skip.
* @param {function((import("../../Feature.js").default|import("../Feature.js").default)): T} callback Feature callback.
* @param {function(import("../../Feature.js").FeatureLike): T} callback Feature callback.
* @param {Object<string, import("../canvas.js").DeclutterGroup>} declutterReplays Declutter replays.
* @return {T|undefined} Callback result.
* @template T
@@ -205,7 +205,7 @@ class ExecutorGroup {
let builderType;
/**
* @param {import("../../Feature.js").default|import("../Feature.js").default} feature Feature.
* @param {import("../../Feature.js").FeatureLike} feature Feature.
* @return {?} Callback result.
*/
function featureCallback(feature) {