Merge pull request #25570 from backstage/rugvip/callback

backend-plugin-api: deprecate service factories with callback form
This commit is contained in:
Patrik Oldsberg
2024-07-16 09:15:47 +02:00
committed by GitHub
28 changed files with 354 additions and 180 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