There are no types for the current draft Network Information API yet. Since it already landed in some browsers, I'd like to change that.
For use cases please take a look at MDNs example here.
My suggestion meets these guidelines:
Are you open for a PR?
Cheers
Any news on my proposal? :)
APIs have to leave experimental state before we add them to lib.d.ts.
@aneeven As a temporary solution, I've created a type definition package. If you still want the types, it may help you. Thanks
Most helpful comment
@aneeven As a temporary solution, I've created a type definition package. If you still want the types, it may help you. Thanks
https://github.com/lacolaco/network-information-types