backend-plugin-api: deprecate service factories with callback form

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-07-10 12:12:22 +02:00
parent 1cb84d7085
commit 062c01c7c4
26 changed files with 321 additions and 151 deletions
+4 -3
View File
@@ -4,7 +4,7 @@
```ts
import { LoggerService } from '@backstage/backend-plugin-api';
import { ServiceFactory } from '@backstage/backend-plugin-api';
import { ServiceFactoryCompat } from '@backstage/backend-plugin-api';
import { ServiceRef } from '@backstage/backend-plugin-api';
// @public
@@ -63,9 +63,10 @@ export interface EventsService {
export type EventsServiceEventHandler = (params: EventParams) => Promise<void>;
// @public (undocumented)
export const eventsServiceFactory: () => ServiceFactory<
export const eventsServiceFactory: ServiceFactoryCompat<
EventsService,
'plugin'
'plugin',
undefined
>;
// @public