diff --git a/src/utils/common.ts b/src/utils/common.ts index a522d9cac22..84742609fb2 100644 --- a/src/utils/common.ts +++ b/src/utils/common.ts @@ -126,9 +126,7 @@ export function randItem(items: T[]): T { } export function randSeedItem(items: T[] | readonly T[]): T { - // TODO: Resolve this later - // @ts-expect-error - phaser is dumb af - return items.length === 1 ? items[0] : Phaser.Math.RND.pick(items); + return items.length === 1 ? items[0] : Phaser.Math.RND.pick(items as T[]); } export function randSeedWeightedItem(items: T[]): T {