diff --git a/lib/constants/platforms.ts b/lib/constants/platforms.ts index 9b5a34c4654355..1d8171245f84fe 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',