mirror of
https://github.com/lux-tel/session-desktop.git
synced 2026-10-30 20:33:24 +00:00
8 lines
357 B
TypeScript
8 lines
357 B
TypeScript
export const STABLE_CHANNEL = 'stable' as const; // The default channel aka. 'latest' for electron-updater
|
|
export const ALPHA_CHANNEL = 'alpha' as const;
|
|
|
|
export type ReleaseChannels = typeof STABLE_CHANNEL | typeof ALPHA_CHANNEL;
|
|
|
|
export const isReleaseChannel = (str: unknown): str is ReleaseChannels =>
|
|
str === STABLE_CHANNEL || str === ALPHA_CHANNEL;
|