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