Fixed types for GetRandom

This commit is contained in:
neki-dev 2023-10-27 16:56:18 +02:00
parent f20963c04f
commit df8439a515

2
types/phaser.d.ts vendored
View file

@ -113511,7 +113511,7 @@ declare namespace Phaser {
* @param startIndex An optional start index. Default 0.
* @param length An optional length, the total number of elements (from the startIndex) to choose from. Default array.length.
*/
function GetRandom(array: any[], startIndex?: number, length?: number): any;
function GetRandom<T>(array: T[], startIndex?: number, length?: number): T;
namespace Matrix {
/**