packages/core: only export createApiRef + dashes in IDs only factory objects for ApiTestRegistry

This commit is contained in:
Patrik Oldsberg
2020-05-24 20:38:38 +02:00
parent 5db777f395
commit 20b48dfed7
17 changed files with 65 additions and 68 deletions
+2 -2
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { ApiRef } from '@backstage/core';
import { createApiRef } from '@backstage/core';
/**
* Types related to the Radar's visualization.
@@ -71,7 +71,7 @@ export interface TechRadarApi extends TechRadarComponentProps {
subtitle?: string;
}
export const techRadarApiRef = new ApiRef<TechRadarApi>({
export const techRadarApiRef = createApiRef<TechRadarApi>({
id: 'plugin.techradar',
description: 'Used by the Tech Radar to render the visualization',
});