We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98b55c8 commit 2320685Copy full SHA for 2320685
1 file changed
src/utilities/network-information-utils.ts
@@ -1,3 +1,4 @@
1
+import { NetworkConnection } from "../interfaces/network-connection";
2
import { NetworkInformation } from "../interfaces/network-information";
3
import { Navigator } from "../types/navigator";
4
@@ -24,9 +25,7 @@ export default function buildNetworkInformationUtils(window?: Window) {
24
25
/**
26
* Returns a `NetworkConnection` object which is an aggregate of `navigator.connection` and `navigator.onLine`
27
*/
- getNetworkConnection():
28
- | (NetworkInformation & { isOnline: boolean })
29
- | undefined {
+ getNetworkConnection(): NetworkConnection | undefined {
30
if (navigator == null) {
31
return undefined;
32
}
0 commit comments