Keep types but marked deprecated

Signed-off-by: Magnus Persson <magnus.persson@fortnox.se>
This commit is contained in:
Magnus Persson
2022-12-13 22:49:54 +01:00
parent b3a304e78e
commit 19f8ad4262
2 changed files with 28 additions and 1 deletions
+12 -1
View File
@@ -14,7 +14,8 @@
* limitations under the License.
*/
import { MetricKey } from '@backstage/plugin-sonarqube-react';
import { MetricKey as NonDeprecatedMetricKey } from '@backstage/plugin-sonarqube-react';
import { SonarUrlProcessorFunc as NonDeprecatedSonarUrlProcessorFunc } from '@backstage/plugin-sonarqube-react';
export interface InstanceUrlWrapper {
instanceUrl: string;
@@ -25,7 +26,17 @@ export interface FindingsWrapper {
measures: Measure[];
}
/**
* @deprecated use the same type from `@backstage/plugin-sonarqube-react` instead
*/
export type MetricKey = NonDeprecatedMetricKey;
export interface Measure {
metric: MetricKey;
value: string;
}
/**
* @deprecated use the same type from `@backstage/plugin-sonarqube-react` instead
*/
export type SonarUrlProcessorFunc = NonDeprecatedSonarUrlProcessorFunc;
+16
View File
@@ -14,6 +14,22 @@
* limitations under the License.
*/
import {
isSonarQubeAvailable as NonDeprecatedIsSonarQubeAvailable,
SONARQUBE_PROJECT_KEY_ANNOTATION as NON_DEPRECATED_SONARQUBE_PROJECT_KEY_ANNOTATION,
} from '@backstage/plugin-sonarqube-react';
export { SonarQubeCard } from './SonarQubeCard';
export type { DuplicationRating } from './SonarQubeCard';
export type { SonarQubeContentPageProps } from './SonarQubeContentPage';
/**
* @deprecated use the same type from `@backstage/plugin-sonarqube-react` instead
*/
export const isSonarQubeAvailable = NonDeprecatedIsSonarQubeAvailable;
/**
* @deprecated use the same type from `@backstage/plugin-sonarqube-react` instead
*/
export const SONARQUBE_PROJECT_KEY_ANNOTATION =
NON_DEPRECATED_SONARQUBE_PROJECT_KEY_ANNOTATION;