core-app-api: deprecate ApiRegistry

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-11-16 18:35:00 +01:00
parent 937189f15a
commit 1c37c3c26c
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -126,7 +126,7 @@ export type ApiProviderProps = {
children: ReactNode;
};
// @public
// @public @deprecated
export class ApiRegistry implements ApiHolder {
constructor(apis: Map<string, unknown>);
// Warning: (ae-forgotten-export) The symbol "ApiRegistryBuilder" needs to be exported by the entry point index.d.ts
@@ -36,6 +36,7 @@ class ApiRegistryBuilder {
* A registry for utility APIs.
*
* @public
* @deprecated Will be removed, use {@link @backstage/test-utils#TestApiProvider} instead.
*/
export class ApiRegistry implements ApiHolder {
static builder() {