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
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