Merge pull request #13510 from backstage/mob/factories

backend-next: incorporate options into createServiceFactory
This commit is contained in:
Patrik Oldsberg
2022-09-09 15:17:14 +02:00
committed by GitHub
12 changed files with 193 additions and 42 deletions
@@ -46,6 +46,7 @@ export interface TestBackendOptions<
...{
[index in keyof TServices]:
| ServiceFactory<TServices[index]>
| (() => ServiceFactory<TServices[index]>)
| [ServiceRef<TServices[index]>, Partial<TServices[index]>];
},
];
@@ -32,6 +32,7 @@ export interface TestBackendOptions<
...{
[index in keyof TServices]:
| ServiceFactory<TServices[index]>
| (() => ServiceFactory<TServices[index]>)
| [ServiceRef<TServices[index]>, Partial<TServices[index]>];
},
];