19 lines
367 B
JavaScript
19 lines
367 B
JavaScript
/**
|
|
* @typedef {Object} User
|
|
* @property {string} userId
|
|
* @property {string} name
|
|
* @property {string} rootObjectId
|
|
*/
|
|
|
|
/**
|
|
* Create a User object.
|
|
*
|
|
* @param {string} userId
|
|
* @param {string} name
|
|
* @param {string} rootObjectId
|
|
* @returns {User}
|
|
*/
|
|
export function createUserModel(userId, name, rootObjectId) {
|
|
return { userId, name, rootObjectId };
|
|
}
|