refactor: apply review suggestions
Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -18,6 +18,8 @@ export * from './compatWrapper';
|
||||
export * from './apis';
|
||||
|
||||
export {
|
||||
convertLegacyApp,
|
||||
type ConvertLegacyAppOptions,
|
||||
convertLegacyAppRoot,
|
||||
type ConvertLegacyAppRootOptions,
|
||||
} from './convertLegacyApp';
|
||||
|
||||
Reference in New Issue
Block a user