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 GraphQLEndpoint = {
// Will be used as unique key for storing history and query data
@@ -33,7 +33,7 @@ export type GraphQLBrowseApi = {
getEndpoints(): Promise<GraphQLEndpoint[]>;
};
export const graphQlBrowseApiRef = new ApiRef<GraphQLBrowseApi>({
export const graphQlBrowseApiRef = createApiRef<GraphQLBrowseApi>({
id: 'plugin.graphiql.browse',
description: 'Used to supply GraphQL endpoints for browsing',
});