diff options
| author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2024-04-26 09:38:38 +0200 |
|---|---|---|
| committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2024-04-26 13:11:41 +0200 |
| commit | 8079cd4358a98bc7013365e065f4b83446f9c797 (patch) | |
| tree | 658dcd0b2000191aafbff4904d2e29ec7f16f4eb /platform | |
| parent | 11d3768132582d192b8464769f26b493ae822321 (diff) | |
| download | redot-engine-8079cd4358a98bc7013365e065f4b83446f9c797.tar.gz | |
[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.
Diffstat (limited to 'platform')
| -rw-r--r-- | platform/web/js/engine/features.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/platform/web/js/engine/features.js b/platform/web/js/engine/features.js index 81bc82f3c6..263ea6ac88 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<string>} 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 { |
