Merge pull request #25589 from backstage/rugvip/router2

backend-defaults: refactor rootHttpRouterServiceFactory to define options on its own
This commit is contained in:
Patrik Oldsberg
2024-07-16 11:15:37 +02:00
committed by GitHub
5 changed files with 28 additions and 20 deletions
+4 -5
View File
@@ -288,11 +288,10 @@ export namespace mockServices {
// (undocumented)
export namespace rootHttpRouter {
const // (undocumented)
factory: ServiceFactoryCompat<
RootHttpRouterService,
'root',
RootHttpRouterFactoryOptions
>;
factory: ((
options?: RootHttpRouterFactoryOptions | undefined,
) => ServiceFactory<RootHttpRouterService, 'root'>) &
ServiceFactory<RootHttpRouterService, 'root'>;
const // (undocumented)
mock: (
partialImpl?: Partial<RootHttpRouterService> | undefined,