Skip to main content

Function: getTeam()

getTeam(catalogDir): (id) => Promise<Team>

Defined in: teams.ts:27

Returns a team from EventCatalog.

Parameters​

ParameterType
catalogDirstring

Returns​

Function

Parameters​

ParameterType
idstring

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');