You can optionally specify a version to get a specific version of the channel
@example
import utils from'@eventcatalog/utils'; const{ getChannel }=utils('/path/to/eventcatalog'); // Gets the latest version of the channel const channel =awaitgetChannel('InventoryChannel'); // Gets a version of the channel const channel =awaitgetChannel('InventoryChannel','0.0.1');
Returns a channel from EventCatalog.
You can optionally specify a version to get a specific version of the channel