chore: revert small change

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-09-03 13:55:36 +02:00
parent 948d431983
commit 4d39e3b4ae
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -11,6 +11,7 @@ import { AnyRouteRefParams } from '@backstage/core-plugin-api';
import { BackstagePlugin } from '@backstage/core-plugin-api';
import { ComponentType } from 'react';
import { ExtensionDefinition } from '@backstage/frontend-plugin-api';
import { ExtensionOverrides } from '@backstage/frontend-plugin-api';
import { ExternalRouteRef } from '@backstage/core-plugin-api';
import { ExternalRouteRef as ExternalRouteRef_2 } from '@backstage/frontend-plugin-api';
import { FrontendModule } from '@backstage/frontend-plugin-api';
@@ -28,7 +29,7 @@ export function compatWrapper(element: ReactNode): React_2.JSX.Element;
// @public (undocumented)
export function convertLegacyApp(
rootElement: React_2.JSX.Element,
): (FrontendPlugin | FrontendModule)[];
): (FrontendPlugin | FrontendModule | ExtensionOverrides)[];
// @public (undocumented)
export function convertLegacyPageExtension(
@@ -26,6 +26,7 @@ import {
FrontendPlugin,
coreExtensionData,
createExtension,
ExtensionOverrides,
createExtensionInput,
createFrontendModule,
} from '@backstage/frontend-plugin-api';
@@ -61,7 +62,7 @@ function selectChildren(
/** @public */
export function convertLegacyApp(
rootElement: React.JSX.Element,
): (FrontendPlugin | FrontendModule)[] {
): (FrontendPlugin | FrontendModule | ExtensionOverrides)[] {
if (getComponentData(rootElement, 'core.type') === 'FlatRoutes') {
return collectLegacyRoutes(rootElement);
}