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

Fixed Typeerror for addvenetlistner added isWifiEnabled type in NetInfoUnknownState and NetInfoDisconnectedState #680

Merged
merged 2 commits into from Nov 1, 2023

Conversation

tohel17
Copy link
Contributor

@tohel17 tohel17 commented Aug 2, 2023

Overview

When using NetInfo.addEventListener was getting isWifiEnabled in data but was getting typeerror when using it. so add isWifiEnabled as boolean and optional type in NetInfoUnknownState and NetInfoDisconnectedState.

Test Plan

1] Run Yarn test got all my the test cases passed.
2] Run yarn validate:typescript all test case passed without any error.

@tohel17
Copy link
Contributor Author

tohel17 commented Aug 23, 2023

@matt-oakes is it already merged, can you please look after this.

Copy link
Contributor

@mikehardy mikehardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thank you

@mikehardy
Copy link
Contributor

I am closing and re-opening just to kick off CI

@mikehardy mikehardy closed this Nov 1, 2023
@mikehardy mikehardy reopened this Nov 1, 2023
@mikehardy mikehardy added the pending merge A PR that will be merged shortly, waiting for CI or final comment label Nov 1, 2023
@mikehardy mikehardy merged commit 46c4c71 into react-native-netinfo:master Nov 1, 2023
2 checks passed
@mikehardy mikehardy removed the pending merge A PR that will be merged shortly, waiting for CI or final comment label Nov 1, 2023
github-actions bot pushed a commit that referenced this pull request Nov 1, 2023
## [9.4.2](v9.4.1...v9.4.2) (2023-11-01)

### Bug Fixes

* **types:** add optional isWifiEnabled boolean to NetInfoUnknownState + NetInfoDisconnectedState ([#680](#680)) ([46c4c71](46c4c71))
@matt-oakes
Copy link
Collaborator

🎉 This PR is included in version 9.4.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants