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

Narrow type when using "isArray" function #27

Closed
wants to merge 1 commit into from

Conversation

mathfox
Copy link

@mathfox mathfox commented Jun 15, 2024

The problem

Currently when you use the "isArray" function you have to manually cast the variable type to the Array.

Proposed changes

We should allow the TypeScript type inferrer to narrow the type of the variable.

@cxmeel cxmeel closed this Mar 12, 2025
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