Function: getTeams()
getTeams(
catalogDir): (options?) =>Promise<Team[]>
Defined in: teams.ts:58
Returns all teams from EventCatalog.
Parameters
| Parameter | Type |
|---|---|
catalogDir | string |
Returns
Function
Parameters
| Parameter | Type |
|---|---|
options? | {} |
Returns
Promise<Team[]>
Example
import utils from '@eventcatalog/utils';
const { getTeams } = utils('/path/to/eventcatalog');
// Gets all teams from the catalog
const channels = await getTeams();