mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-10-24 14:05:50 +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
|
||
|---|---|---|
| .. | ||
| mocksContainer | ||
| mockClock.ts | ||
| mockConsoleLog.ts | ||
| mockContextCanvas.ts | ||
| mockFetch.ts | ||
| mockGameObject.ts | ||
| mockGameObjectCreator.ts | ||
| mockLoader.ts | ||
| mockLocalStorage.ts | ||
| mockTextureManager.ts | ||
| mockTimedEventManager.ts | ||
| mockVideoGameObject.ts | ||