backend-plugin-api: add ServiceFactoryOrFunction type

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2023-01-03 13:45:50 +01:00
parent 043f4e5678
commit ecc6bfe4c9
9 changed files with 36 additions and 9 deletions
+6
View File
@@ -0,0 +1,6 @@
---
'@backstage/backend-defaults': patch
'@backstage/backend-app-api': patch
---
Use new `ServiceFactoryOrFunction` type.
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/backend-plugin-api': patch
---
Added `ServiceFactoryOrFunction` type, for use when either a `ServiceFactory` or `() => ServiceFactory` can be used.