mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
38 lines
845 B
TypeScript
38 lines
845 B
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
|
|
|
|
export type UpdateChannelId = "alpha" | "beta" | "latest";
|
|
|
|
const latestChannel: UpdateChannel = {
|
|
id: "latest",
|
|
label: "Stable",
|
|
moreStableUpdateChannel: null,
|
|
};
|
|
|
|
const betaChannel: UpdateChannel = {
|
|
id: "beta",
|
|
label: "Beta",
|
|
moreStableUpdateChannel: latestChannel,
|
|
};
|
|
|
|
const alphaChannel: UpdateChannel = {
|
|
id: "alpha",
|
|
label: "Alpha",
|
|
moreStableUpdateChannel: betaChannel,
|
|
};
|
|
|
|
export const updateChannels: Record<UpdateChannelId, UpdateChannel> = {
|
|
latest: latestChannel,
|
|
beta: betaChannel,
|
|
alpha: alphaChannel,
|
|
};
|
|
|
|
export interface UpdateChannel {
|
|
readonly id: UpdateChannelId;
|
|
readonly label: string;
|
|
readonly moreStableUpdateChannel: UpdateChannel | null;
|
|
}
|