Function: getTeam()
getTeam(
catalogDir): (id) =>Promise<Team>
Defined in: teams.ts:27
Returns a team from EventCatalog.
Parameters
| Parameter | Type |
|---|---|
catalogDir | string |
Returns
Function
Parameters
| Parameter | Type |
|---|---|
id | string |
Returns
Promise<Team>
Example
import utils from '@eventcatalog/utils';
const { getTeam } = utils('/path/to/eventcatalog');
// Gets the team with the given id
const team = await getTeam('eventcatalog-core-team');