Add missing imports on example code

Signed-off-by: Fer <fwfurtado@gmail.com>
This commit is contained in:
Fer
2023-12-21 11:37:13 -03:00
committed by blam
parent fae822be72
commit 765af3b397
+2
View File
@@ -42,6 +42,7 @@ Add the following to `makeCreateEnv`
```diff
// packages/backend/src/index.ts
+ import { DefaultEventBroker } from '@backstage/plugin-events-backend';
+ const eventBroker = new DefaultEventBroker(root.child({ type: 'plugin' }));
```
@@ -49,6 +50,7 @@ Then update plugin environment to include the event broker.
```diff
// packages/backend/src/types.ts
+ import { EventBroker } from '@backstage/plugin-events-node';
+ eventBroker: EventBroker;
```