mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-10-24 05:55:56 +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
|
||
|---|---|---|
| .. | ||
| helpers | ||
| mocks | ||
| saves | ||
| errorInterceptor.ts | ||
| fakeMobile.html | ||
| gameManager.ts | ||
| gameManagerUtils.ts | ||
| gameWrapper.ts | ||
| inputsHandler.ts | ||
| listenersManager.ts | ||
| phaseInterceptor.ts | ||
| testFileInitialization.ts | ||
| testUtils.ts | ||
| TextInterceptor.ts | ||