Webiny-js webiny-api-event-publisher-catalog
install
source · Clone the upstream repo
git clone https://github.com/webiny/webiny-js
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/webiny/webiny-js "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/user-skills/generated/api/event-publisher" ~/.claude/skills/webiny-webiny-js-webiny-api-event-publisher-catalog && rm -rf "$T"
manifest:
skills/user-skills/generated/api/event-publisher/SKILL.mdsource content
api/event-publisher
How to Use
- Find the abstraction you need below
- You MUST read the source file to get the exact interface and types!
- Import:
import { Name } from "<importPath>"; - See
orwebiny-use-case-pattern
skills for implementation patternswebiny-event-handler-pattern
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.