Rename serviceFactories to services, fix docs
Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
@@ -44,7 +44,7 @@ export function createSpecializedBackend(
|
||||
// @public (undocumented)
|
||||
export interface CreateSpecializedBackendOptions {
|
||||
// (undocumented)
|
||||
serviceFactories: AnyServiceFactory[];
|
||||
services: AnyServiceFactory[];
|
||||
}
|
||||
|
||||
// @public (undocumented)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user