Skip to main content
Create a PubSub event class with its test file in the target module and register the class in the module’s events array. It writes modules/<module>/src/events/<Name>Event.ts and modules/<module>/tests/events/<Name>Event.spec.ts, installing the @talosjs/event dependency if it is missing. When --channel is omitted, the channel defaults to the kebab-case form of the name.

Usage

Examples

Options

AI Skill

This command ships a matching event:create skill. Your AI agent uses it to generate the publish/subscribe event class and its test file, then implement the data type, channel, and handler for an event that extends PubSub from @talosjs/event.