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