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

Wrong typing for Connection #143

Open
3 tasks done
ajuanjojjj opened this issue Jan 18, 2022 · 0 comments
Open
3 tasks done

Wrong typing for Connection #143

ajuanjojjj opened this issue Jan 18, 2022 · 0 comments

Comments

@ajuanjojjj
Copy link

Bug Report

Problem

Interface 'Navigator' incorrectly extends interface 'NavigatorNetworkInformation'.
Types of property 'connection' are incompatible.
Property 'dispatchEvent' is missing in type 'Connection' but required in type 'NetworkInformation'.ts(2430)
Also
The types of 'connection.type' are incompatible between these types.
Type 'string' is not assignable to type 'ConnectionType'.

What is expected to happen?

Typescript compilation completes without errors

What does actually happen?

Typescript compilation errors out

Information

None that seemed relevant

Command or Code

tsc

Environment, Platform, Device

Typescript Compilation

Version information

Typescript Version 4.5.4
cordova-plugin-network-information Version 3.0.0

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
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

No branches or pull requests

1 participant