1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-18 14:21:41 +00:00

[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

View File

@@ -72,8 +72,7 @@ const Features = { // eslint-disable-line no-unused-vars
* *
* @returns {Array<string>} A list of human-readable missing features. * @returns {Array<string>} A list of human-readable missing features.
* @function Engine.getMissingFeatures * @function Engine.getMissingFeatures
* @typedef {{ threads: boolean }} SupportedFeatures * @param {{threads: (boolean|undefined)}} supportedFeatures
* @param {SupportedFeatures} supportedFeatures
*/ */
getMissingFeatures: function (supportedFeatures = {}) { getMissingFeatures: function (supportedFeatures = {}) {
const { const {