backend-defaults: refactor rootHttpRouterServiceFactory to define options on its own

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-07-11 14:29:18 +02:00
parent 0a474ae85a
commit 419f3878bd
5 changed files with 28 additions and 20 deletions
+4 -5
View File
@@ -290,11 +290,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,