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