Add missing imports on example code
Signed-off-by: Fer <fwfurtado@gmail.com>
This commit is contained in:
@@ -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;
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user