Ver Fonte

docs: Fix example for blocking event handler API

Michael Bromley há 1 ano atrás
pai
commit
59206d924d
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      docs/docs/guides/developer-guide/events/index.mdx

+ 2 - 2
docs/docs/guides/developer-guide/events/index.mdx

@@ -341,7 +341,7 @@ export class MyPluginPlugin implements OnModuleInit {
     onModuleInit() {
         // highlight-start
         this.eventBus.registerBlockingEventHandler({
-            type: CustomerEvent,
+            event: CustomerEvent,
             id: 'sync-customer-details-handler',
             handler: async event => {
                 // This hypothetical service method would do nothing
@@ -403,4 +403,4 @@ this.eventBus.registerBlockingEventHandler({
     // highlight-next-line
     before: 'sync-customer-details-handler',
 });
-```
+```