From 2295d4c5e5de8d50092cfc7a4b518befc8bb37e5 Mon Sep 17 00:00:00 2001 From: Ben Afonso Date: Mon, 4 Nov 2024 12:56:55 +0100 Subject: [PATCH] Fix getScene, getScenes return types. --- src/scene/SceneManager.js | 2 ++ src/scene/ScenePlugin.js | 1 + 2 files changed, 3 insertions(+) diff --git a/src/scene/SceneManager.js b/src/scene/SceneManager.js index 7114e5974..65f901d35 100644 --- a/src/scene/SceneManager.js +++ b/src/scene/SceneManager.js @@ -847,6 +847,7 @@ var SceneManager = new Class({ * @since 3.16.0 * * @generic {Phaser.Scene[]} T - [$return] + * @genericUse {T} - [$return] * * @param {boolean} [isActive=true] - Only include Scene's that are currently active? * @param {boolean} [inReverse=false] - Return the array of Scenes in reverse? @@ -885,6 +886,7 @@ var SceneManager = new Class({ * * @generic {Phaser.Scene} T * @genericUse {(T|string)} - [key] + * @genericUse {T} - [$return] * * @param {(string|Phaser.Scene)} key - The key of the Scene to retrieve. * diff --git a/src/scene/ScenePlugin.js b/src/scene/ScenePlugin.js index 7272117a7..7397db22b 100644 --- a/src/scene/ScenePlugin.js +++ b/src/scene/ScenePlugin.js @@ -1022,6 +1022,7 @@ var ScenePlugin = new Class({ * * @generic {Phaser.Scene} T * @genericUse {(T|string)} - [key] + * @genericUse {T} - [$return] * * @method Phaser.Scenes.ScenePlugin#get * @since 3.0.0