PhoenixAssets.PubSub (PhoenixAssets v0.1.0)

View Source

Integration plugin that generates typed PubSub topic builders and an event union.

Reads the topics declared in the module passed as topics: (see PhoenixAssets.PubSub.Topics) and emits pubsub.ts: a builder per topic (substituting {param} placeholders) and a discriminated PubSubEvent union over every topic/event pair, with payloads typed from $phoenix/types or from inline field maps.

Summary

Functions

dev_processes(_, _)

Callback implementation for PhoenixAssets.Plugin.dev_processes/2.

doctor_checks(_, _)

Callback implementation for PhoenixAssets.Plugin.doctor_checks/2.

name()

Callback implementation for PhoenixAssets.Plugin.name/0.

vite_config(_, _)

Callback implementation for PhoenixAssets.Plugin.vite_config/2.