fix: add types to releases

This commit is contained in:
Bharath Lakshman Kumar
2024-08-23 14:29:39 +05:30
parent b3d5529080
commit 3eebb4a8cf

View File

@@ -1,4 +1,4 @@
export const releases: any = { export const releases = {
WindowsInstaller: "zen.installer.exe", WindowsInstaller: "zen.installer.exe",
WindowsInstallerGeneric: "zen.installer-generic.exe", WindowsInstallerGeneric: "zen.installer-generic.exe",
@@ -13,7 +13,7 @@ export const releases: any = {
LinuxAppImage: "zen-specific.AppImage", LinuxAppImage: "zen-specific.AppImage",
LinuxAppImageGeneric: "zen-generic.AppImage", LinuxAppImageGeneric: "zen-generic.AppImage",
}; } as const;
// platform // platform
// -> arch // -> arch
@@ -44,3 +44,11 @@ export const releaseTree: any = {
}, },
}, },
}; };
type Platform = "Windows" | "MacOS" | "Linux";
type Architecture = "specific" | "generic";
type WindowsDownloadType = "installer" | "portable";
type LinuxDownloadType = "portable" | "appimage" | "flatpak";
export type { Platform, Architecture, WindowsDownloadType, LinuxDownloadType };