From fec6251f900e754b8b7b5a0f19a15be350a5ec02 Mon Sep 17 00:00:00 2001 From: Tobias <tobias.gabriel@sap.com> Date: Wed, 7 Aug 2024 14:35:55 +0200 Subject: [PATCH] chore(constants): export PLATFORM_HOST_TYPES constant as value (#30642) --- lib/constants/platforms.ts | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/lib/constants/platforms.ts b/lib/constants/platforms.ts index 9b5a34c465..1d8171245f 100644 --- a/lib/constants/platforms.ts +++ b/lib/constants/platforms.ts @@ -1,13 +1,16 @@ -export type PlatformId = - | 'azure' - | 'codecommit' - | 'bitbucket' - | 'bitbucket-server' - | 'gerrit' - | 'gitea' - | 'github' - | 'gitlab' - | 'local'; +export const PLATFORM_HOST_TYPES = [ + 'azure', + 'bitbucket', + 'bitbucket-server', + 'codecommit', + 'gerrit', + 'gitea', + 'github', + 'gitlab', + 'local', +] as const; + +export type PlatformId = (typeof PLATFORM_HOST_TYPES)[number]; export const GITEA_API_USING_HOST_TYPES = [ 'gitea', -- GitLab