From 8079cd4358a98bc7013365e065f4b83446f9c797 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Fri, 26 Apr 2024 09:38:38 +0200 Subject: [PATCH] [Web] Fix closure compiler typedef annotation The typedef annotation is expected to come bofre a var (or const) since it's most commonly used in externs. Use an inline definition instead. --- platform/web/js/engine/features.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platform/web/js/engine/features.js b/platform/web/js/engine/features.js index 81bc82f3c6c..263ea6ac88d 100644 --- a/platform/web/js/engine/features.js +++ b/platform/web/js/engine/features.js @@ -72,8 +72,7 @@ const Features = { // eslint-disable-line no-unused-vars * * @returns {Array} A list of human-readable missing features. * @function Engine.getMissingFeatures - * @typedef {{ threads: boolean }} SupportedFeatures - * @param {SupportedFeatures} supportedFeatures + * @param {{threads: (boolean|undefined)}} supportedFeatures */ getMissingFeatures: function (supportedFeatures = {}) { const {