Rename serviceFactories to services, fix docs

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2022-08-10 15:35:18 +02:00
parent 5595a608d4
commit e419f6dcca
6 changed files with 21 additions and 36 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ export function createSpecializedBackend(
// @public (undocumented)
export interface CreateSpecializedBackendOptions {
// (undocumented)
serviceFactories: AnyServiceFactory[];
services: AnyServiceFactory[];
}
// @public (undocumented)
+2 -2
View File
@@ -42,7 +42,7 @@ export interface BackendRegisterInit {
* @public
*/
export interface CreateSpecializedBackendOptions {
serviceFactories: AnyServiceFactory[];
services: AnyServiceFactory[];
}
export type ServiceHolder = {
@@ -55,5 +55,5 @@ export type ServiceHolder = {
export function createSpecializedBackend(
options: CreateSpecializedBackendOptions,
): Backend {
return new BackstageBackend(options.serviceFactories);
return new BackstageBackend(options.services);
}