import { ExpectedError } from "office-addin-usage-data" ; /**
 * The type of Office application.
 */ export enum AppType { /**
     * Office application for Windows or Mac
     */ Desktop = "desktop" , /**
     * Office application for the web browser
     */ Web = "web" } param text returns export function parseAppType ( text ) { switch ( text ? text . toLowerCase ( ) : undefined ) { case "desktop" : case "macos" : case "win32" : case "ios" : case "android" : return AppType . Desktop ; case "web" : return AppType . Web ; case undefined : return undefined ; default : throw new ExpectedError ( `Please select a valid app type instead of '${ text }'.` ) ; } }