import { TelemetryInfo } from "./userAgentPolicy" ; interface NavigatorEx extends Navigator { readonly oscpu : string ; } export function getDefaultUserAgentKey ( ) { return "x-ms-command-name" ; } export function getPlatformSpecificData ( ) { const navigator = self . navigator as NavigatorEx ; const osInfo = { key : "OS" , value : ( navigator . oscpu || navigator . platform ) . replace ( " " , "" ) , } ; return [ osInfo ] ; }