[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.
This commit is contained in:
Fabio Alessandrelli 2024-04-26 09:38:38 +02:00
parent 11d3768132
commit 8079cd4358
1 changed files with 1 additions and 2 deletions

View File

@ -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 {