Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup #329

Merged
merged 4 commits into from
Jul 31, 2024
Merged

Cleanup #329

merged 4 commits into from
Jul 31, 2024

Conversation

Yogu
Copy link
Member

@Yogu Yogu commented Jul 31, 2024

No description provided.

@Yogu Yogu requested a review from Etienne-Buschong July 31, 2024 13:29
Yogu added 3 commits July 31, 2024 18:19
Replaced all usages of Array.isArray with a custom utility that fixes its types. Using Array.isArray() on a value that can either be a ReadonlyArray or something else actuall narrows the value down to any[], which can be dangerous. Looks like our isReadonlyArray is even safe to use for mutable array types.

BREAKING CHANGE: some APIs that previously used mutable arrays are now typed as ReadonlyArray.
getEnumTypes() actually had a wrong type signature, which TS 5.5 is able
to report as an error.
@Yogu Yogu merged commit 16b79b9 into main Jul 31, 2024
21 checks passed
@Yogu Yogu deleted the cleanup branch July 31, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants