refactor: apply review suggestions

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2025-08-18 10:20:58 +02:00
parent 62c3628b27
commit d22cfa9f1a
4 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
'@backstage/core-compat-api': minor
---
**BREAKING**: Rename `createLegacyApp` to `createLegacyAppRoot` as it better refers to the purpose of the function.
Rename `createLegacyApp` to `createLegacyAppRoot` as it better refers to the purpose of the function.
+6
View File
@@ -31,6 +31,12 @@ import { SubRouteRef as SubRouteRef_2 } from '@backstage/frontend-plugin-api';
// @public
export function compatWrapper(element: ReactNode): JSX_3.Element;
// @public @deprecated (undocumented)
export const convertLegacyApp: typeof convertLegacyAppRoot;
// @public @deprecated (undocumented)
export type ConvertLegacyAppOptions = ConvertLegacyAppRootOptions;
// @public (undocumented)
export function convertLegacyAppOptions(options?: {
apis?: Iterable<AnyApiFactory>;
@@ -171,3 +171,17 @@ export function convertLegacyAppRoot(
}),
];
}
/**
* @public
* @deprecated
* Use `convertLegacyAppRoot` instead.
*/
export const convertLegacyApp = convertLegacyAppRoot;
/**
* @public
* @deprecated
* Use `ConvertLegacyAppRootOptions` instead.
*/
export type ConvertLegacyAppOptions = ConvertLegacyAppRootOptions;
+2
View File
@@ -18,6 +18,8 @@ export * from './compatWrapper';
export * from './apis';
export {
convertLegacyApp,
type ConvertLegacyAppOptions,
convertLegacyAppRoot,
type ConvertLegacyAppRootOptions,
} from './convertLegacyApp';