Skip to content

Commit

Permalink
[Web] Fix closure compiler typedef annotation
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Faless authored and theromis committed Apr 29, 2024
1 parent 3090478 commit ba56cfd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions platform/web/js/engine/features.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ba56cfd

Please sign in to comment.