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';
export type LighthouseCategoryId =
| 'pwa'
@@ -105,7 +105,7 @@ export type LighthouseApi = {
triggerAudit: (payload: TriggerAuditPayload) => Promise<Audit>;
};
export const lighthouseApiRef = new ApiRef<LighthouseApi>({
export const lighthouseApiRef = createApiRef<LighthouseApi>({
id: 'plugin.lighthouse.service',
description: 'Used by the Lighthouse plugin to make requests',
});