X Tutup
Skip to content

isNumberType union recursion#692

Merged
Perryvw merged 1 commit intomasterfrom
bugfix/isnumbertype-unions
Jul 26, 2019
Merged

isNumberType union recursion#692
Perryvw merged 1 commit intomasterfrom
bugfix/isnumbertype-unions

Conversation

@tomblind
Copy link
Collaborator

fixes #687

This updates isNumberType to match the behavior of isStringType, recursing into unions and intersections. This fixes issues where enum values were not seen as numeric types when used as array indexes.

fixes #687
This updates `isNumberType` to match the behavior of `isStringType`, recursing into unions and intersections. This fixes issues where enum values were not seen as numeric types when used as array indexes.
@Perryvw Perryvw merged commit 19db39c into master Jul 26, 2019
@Perryvw Perryvw deleted the bugfix/isnumbertype-unions branch July 26, 2019 13:09
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.

Enums as array index

2 participants

X Tutup