You can optionally specify a version to get a specific version of the event
@example
import utils from'@eventcatalog/utils'; const{ getEvent }=utils('/path/to/eventcatalog'); // Gets the latest version of the event const event =awaitgetEvent('InventoryAdjusted'); // Gets a version of the event const event =awaitgetEvent('InventoryAdjusted','0.0.1');
Returns an event from EventCatalog.
You can optionally specify a version to get a specific version of the event