import { enum_only_string } from "@beenotung/tslib/enum";
export var AppType;
(function (AppType) {
    AppType[AppType["web"] = 0] = "web";
    AppType[AppType["android"] = 1] = "android";
    AppType[AppType["ios"] = 2] = "ios";
    AppType[AppType["windows"] = 3] = "windows";
})(AppType || (AppType = {}));
enum_only_string(AppType);
export function getAppType(platform) {
    return platform.is("mobileweb") ? AppType.web
        : platform.is("android") ? AppType.android
            : platform.is("ios") ? AppType.ios
                : platform.is("windows") ? AppType.windows
                    : (function () {
                        throw new TypeError("unknown platform");
                    })();
}
//# sourceMappingURL=platform.js.map