mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-29 13:09:17 +01: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
|
||
|---|---|---|
| .. | ||
| form-change-triggers.ts | ||