mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-10-25 14:35:51 +02:00
* [Refactor] Create utility function `makeArray`
This replaces the `if(!Array.isArray(var)) { var = [var] }` pattern
* Replace `if` with ternary, rename to `coerceArray`
* Add TSDocs
* Improve type inferencing
* Replace missed `Array.isArray` checks
* Apply Biome
* Re-apply changes to phase manager
* Re-apply to `SpeciesFormChangeStatusEffectTrigger` constructor
Apply to new instances in test mocks
|
||
|---|---|---|
| .. | ||
| mockContainer.ts | ||
| mockGraphics.ts | ||
| mockImage.ts | ||
| mockNineslice.ts | ||
| mockPolygon.ts | ||
| mockRectangle.ts | ||
| mockSprite.ts | ||
| mockText.ts | ||
| mockTexture.ts | ||