UNPKG

@backstage/backend-app-api

Version:

Core API used by Backstage backend apps

26 lines (22 loc) 585 B
import { BackendFeature, ServiceFactory } from '@backstage/backend-plugin-api'; /** * @public */ interface Backend { add(feature: BackendFeature | Promise<{ default: BackendFeature; }>): void; start(): Promise<void>; stop(): Promise<void>; } /** * @public */ interface CreateSpecializedBackendOptions { defaultServiceFactories: ServiceFactory[]; } /** * @public */ declare function createSpecializedBackend(options: CreateSpecializedBackendOptions): Backend; export { type Backend, type CreateSpecializedBackendOptions, createSpecializedBackend };