webiny-api-event-publisher-catalog

$npx mdskill add webiny/webiny-js/webiny-api-event-publisher-catalog

Publish domain events using structured abstractions to notify registered system handlers.

  • Manages the process of notifying various parts of the system about state changes.
  • Depends on core event publishing mechanisms and defined event structures.
  • Requires developers to select the appropriate event or publisher interface for use.
  • Provides imported classes and patterns for implementing event-driven logic.
SKILL.md
.github/skills/webiny-api-event-publisher-catalogView on GitHub ↗
---
name: webiny-api-event-publisher-catalog
context: webiny-api
description: >
  api/event-publisher — 2 abstractions.
---

# api/event-publisher

## How to Use

1. Find the abstraction you need below
2. Read the source file to get the exact interface and types
3. Import: `import { Name } from "<importPath>";`
4. See `webiny-use-case-pattern` or `webiny-event-handler-pattern` skills for implementation patterns

## Abstractions

---

**Name:** `DomainEvent`
**Import:** `import { DomainEvent } from "webiny/api/event-publisher"`
**Source:** `@webiny/api-core/features/eventPublisher/index.ts`
**Description:** Base class for all domain events.

---

**Name:** `EventPublisher`
**Import:** `import { EventPublisher } from "webiny/api/event-publisher"`
**Source:** `@webiny/api-core/features/eventPublisher/index.ts`
**Description:** Publish domain events to registered handlers.

---
More from webiny/webiny-js