Keep types but marked deprecated
Signed-off-by: Magnus Persson <magnus.persson@fortnox.se>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user