Fixed most of TypeScript errors for TS 3.1.2

This commit is contained in:
2018-10-10 17:42:23 +09:00
parent d1987e9c60
commit 1829c2cab9
6 changed files with 14 additions and 106 deletions

View File

@ -23,10 +23,12 @@ export default class Analytics {
}
if("connection" in navigator) {
let connection = navigator["connection"] as any
analytics.connection = {
downLink: navigator["connection"].downlink,
roundTripTime: navigator["connection"].rtt,
effectiveType: navigator["connection"].effectiveType
downLink: connection.downlink,
roundTripTime: connection.rtt,
effectiveType: connection.effectiveType
}
}