From dca8354af94e9feb46ea2312857e000aaa232372 Mon Sep 17 00:00:00 2001 From: philippe-perrin-sonarsource Date: Thu, 27 Jan 2022 11:06:59 +0100 Subject: SONAR-15945 Get rid of T namespace in sonar-web --- server/sonar-web/src/main/js/helpers/projectLinks.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'server/sonar-web/src/main/js/helpers/projectLinks.ts') diff --git a/server/sonar-web/src/main/js/helpers/projectLinks.ts b/server/sonar-web/src/main/js/helpers/projectLinks.ts index cf567cdb4cd..30d9b6fa637 100644 --- a/server/sonar-web/src/main/js/helpers/projectLinks.ts +++ b/server/sonar-web/src/main/js/helpers/projectLinks.ts @@ -19,11 +19,12 @@ */ import { partition, sortBy } from 'lodash'; import { translate } from '../helpers/l10n'; +import { ProjectLink } from '../types/types'; const PROVIDED_TYPES = ['homepage', 'ci', 'issue', 'scm', 'scm_dev']; -type NameAndType = Pick; +type NameAndType = Pick; -export function isProvided(link: Pick) { +export function isProvided(link: Pick) { return PROVIDED_TYPES.includes(link.type); } -- cgit v1.2.3