chore: fixing types

Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
benjdlambert
2025-07-31 16:38:53 +02:00
parent a060e618b1
commit b465fbb09b
5 changed files with 11 additions and 24 deletions
@@ -139,7 +139,7 @@ export function convertLegacyAppOptions(
if (Router) {
extensions.push(
RouterBlueprint.make({
params: { Component: componentCompatWrapper(Router) },
params: { component: componentCompatWrapper(Router) },
}),
);
}
+6 -15
View File
@@ -71,7 +71,6 @@ import { OpenIdConnectApi } from '@backstage/core-plugin-api';
import { PendingOAuthRequest } from '@backstage/core-plugin-api';
import { ProfileInfo } from '@backstage/core-plugin-api';
import { ProfileInfoApi } from '@backstage/core-plugin-api';
import { PropsWithChildren } from 'react';
import { ReactNode } from 'react';
import { RouteRef as RouteRef_2 } from '@backstage/frontend-plugin-api';
import { SessionApi } from '@backstage/core-plugin-api';
@@ -268,12 +267,10 @@ export const AppRootWrapperBlueprint: ExtensionBlueprint<{
kind: 'app-root-wrapper';
name: undefined;
params: {
Component: ComponentType<PropsWithChildren<{}>>;
component: (props: { children: ReactNode }) => JSX.Element | null;
};
output: ConfigurableExtensionDataRef<
ComponentType<{
children?: ReactNode | undefined;
}>,
(props: { children: ReactNode }) => JSX.Element | null,
'app.root.wrapper',
{}
>;
@@ -282,9 +279,7 @@ export const AppRootWrapperBlueprint: ExtensionBlueprint<{
configInput: {};
dataRefs: {
component: ConfigurableExtensionDataRef<
ComponentType<{
children?: ReactNode | undefined;
}>,
(props: { children: ReactNode }) => JSX.Element | null,
'app.root.wrapper',
{}
>;
@@ -1724,12 +1719,10 @@ export const RouterBlueprint: ExtensionBlueprint<{
kind: 'app-router-component';
name: undefined;
params: {
Component: ComponentType<PropsWithChildren<{}>>;
component: (props: { children: ReactNode }) => JSX.Element | null;
};
output: ConfigurableExtensionDataRef<
ComponentType<{
children?: ReactNode | undefined;
}>,
(props: { children: ReactNode }) => JSX.Element | null,
'app.router.wrapper',
{}
>;
@@ -1738,9 +1731,7 @@ export const RouterBlueprint: ExtensionBlueprint<{
configInput: {};
dataRefs: {
component: ConfigurableExtensionDataRef<
ComponentType<{
children?: ReactNode | undefined;
}>,
(props: { children: ReactNode }) => JSX.Element | null,
'app.router.wrapper',
{}
>;
@@ -160,7 +160,7 @@ export function renderInTestApp(
}),
RouterBlueprint.make({
params: {
Component: ({ children }) => (
component: ({ children }) => (
<MemoryRouter initialEntries={options?.initialRouteEntries}>
{children}
</MemoryRouter>
+2 -6
View File
@@ -130,9 +130,7 @@ const appPlugin: FrontendPlugin<
inputs: {
router: ExtensionInput<
ConfigurableExtensionDataRef<
ComponentType<{
children?: ReactNode | undefined;
}>,
(props: { children: ReactNode }) => JSX.Element | null,
'app.router.wrapper',
{}
>,
@@ -168,9 +166,7 @@ const appPlugin: FrontendPlugin<
>;
wrappers: ExtensionInput<
ConfigurableExtensionDataRef<
ComponentType<{
children?: ReactNode | undefined;
}>,
(props: { children: ReactNode }) => JSX.Element | null,
'app.root.wrapper',
{}
>,
+1 -1
View File
@@ -182,7 +182,7 @@ type RouteResolverProxy = {
export interface AppRouterProps {
children?: ReactNode;
SignInPageComponent?: ComponentType<SignInPageProps>;
RouterComponent?: ComponentType<PropsWithChildren<{}>>;
RouterComponent?: (props: { children: ReactNode }) => JSX.Element | null;
extraElements?: Array<JSX.Element>;
}