pokerogue/src/data
Sirz Benjie e5e0835a96
[Misc][Refactor] Add scaffolding for TypedArrays and improve typing on methods related to arrays (#6547)
* make IVs use Uint8Array

* Add many typed array helpers

* Move array utils to its own file

* Add suppression comment

* Adjust type of `getStats`

* Adjust test mocks to use typed arrays

* Adjust signatures of some phases to use ArrayLike<T>

* Adjust signature of src/ui/containers/stats-container#updateIvs

* Remove comment gap to try to satisfy typedoc

* Ensure ivs are always set

* fix: fun-and-games me to use typed array

* Add new tests for array utilities

* Update type of ivs in save-data.ts

* Update part-timer-encounter.test.ts

* Convert uses of StatusEffect[] to Uint8Array

* Update ssui to use uint8array for ivs

* Revert use of typed arrays

* Move `nil` to @types/common

* Make more arrays readonly

* fix: remnant change to immune effects

* Even more array improvements

* Apply kev's suggestions from code review

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>

* address Bertie's comments from code review

* tests: remove undefined check for bigint array types

* fixup abilities.ts

---------

Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
2025-10-06 12:21:58 -05:00
..
abilities [Misc][Refactor] Add scaffolding for TypedArrays and improve typing on methods related to arrays (#6547) 2025-10-06 12:21:58 -05:00
balance [Misc][Refactor] Add scaffolding for TypedArrays and improve typing on methods related to arrays (#6547) 2025-10-06 12:21:58 -05:00
moves [Misc][Refactor] Add scaffolding for TypedArrays and improve typing on methods related to arrays (#6547) 2025-10-06 12:21:58 -05:00
mystery-encounters [Misc][Refactor] Add scaffolding for TypedArrays and improve typing on methods related to arrays (#6547) 2025-10-06 12:21:58 -05:00
pokemon [Balance] Adjust evolution delay requirements (#6595) 2025-09-30 12:59:08 -05:00
pokemon-forms [Misc][Refactor] Add scaffolding for TypedArrays and improve typing on methods related to arrays (#6547) 2025-10-06 12:21:58 -05:00
positional-tags [Misc][Refactor] Add scaffolding for TypedArrays and improve typing on methods related to arrays (#6547) 2025-10-06 12:21:58 -05:00
trainers [Misc][Refactor] Add scaffolding for TypedArrays and improve typing on methods related to arrays (#6547) 2025-10-06 12:21:58 -05:00
arena-tag.ts [Move] Fully implement Healing wish (/Lunar Dance) and remove nextCommandPhaseQueue (#6027) 2025-09-20 17:32:31 -05:00
battle-anims.ts [Misc][Refactor] Add scaffolding for TypedArrays and improve typing on methods related to arrays (#6547) 2025-10-06 12:21:58 -05:00
battler-tags.ts [Misc][Refactor] Add scaffolding for TypedArrays and improve typing on methods related to arrays (#6547) 2025-10-06 12:21:58 -05:00
berry.ts [Dev] Migrated to Biome 2.2.3, added more rules (#6259) 2025-09-08 10:35:18 -05:00
challenge.ts [Challenge][Bug] Restrict starters with gender-based evolutions in challenges (#6564) 2025-09-25 08:48:47 -05:00
daily-run.ts [Refactor] Refactor Starter and its handling (#6477) 2025-09-21 11:07:08 -07:00
data-lists.ts [Misc][Refactor] Add scaffolding for TypedArrays and improve typing on methods related to arrays (#6547) 2025-10-06 12:21:58 -05:00
dialogue.ts [i18n] Change i18n keys to be camel case Part 2 (#6250) 2025-08-17 12:59:09 -07:00
double-battle-dialogue.ts [i18n] Change i18n keys to be camel case Part 2 (#6250) 2025-08-17 12:59:09 -07:00
egg-hatch-data.ts [Refactor] Move type definitions away from game-data.ts (#6487) 2025-09-10 14:09:33 -05:00
egg.ts [Misc][Refactor] Add scaffolding for TypedArrays and improve typing on methods related to arrays (#6547) 2025-10-06 12:21:58 -05:00
exp.ts [Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495) 2025-03-09 14:13:25 -07:00
gender.ts [Misc][Refactor][GitHub] Ditch eslint for biome, and add a formatter (#5495) 2025-03-09 14:13:25 -07:00
nature.ts [UI/UX][Refactor] Remove redundant references to globalScene.uiTheme (#6472) 2025-09-03 19:17:19 +02:00
pokeball.ts [Dev] Enable Biome import sorting (#6052) 2025-07-13 00:21:25 -07:00
pokemon-forms.ts [Misc][Refactor] Add scaffolding for TypedArrays and improve typing on methods related to arrays (#6547) 2025-10-06 12:21:58 -05:00
pokemon-species.ts [Dev] Improve typescript performance and version bump node and dependencies (#6627) 2025-10-04 19:29:23 -05:00
splash-messages.ts [i18n] Camel case remaining keys (#6508) 2025-09-10 18:45:01 -05:00
status-effect.ts [Dev] Migrated to Biome 2.2.3, added more rules (#6259) 2025-09-08 10:35:18 -05:00
terrain.ts Revert "[Refactor] Add TIME_OF_DAY_OVERRIDE & refactor arena tint code" 2025-09-27 14:55:59 -07:00
type.ts [Dev] Migrated to Biome 2.2.3, added more rules (#6259) 2025-09-08 10:35:18 -05:00
weather.ts [UI/UX] Show correct max duration in flyout (#6566) 2025-09-18 13:35:22 -07:00