lots more stuff
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
/**
|
||||
* @typedef {Object} User
|
||||
* @property {string} userId
|
||||
* @property {string} name
|
||||
* @property {string} rootObjectId
|
||||
*/
|
||||
|
||||
@@ -8,9 +9,10 @@
|
||||
* Create a User object.
|
||||
*
|
||||
* @param {string} userId
|
||||
* @param {string} name
|
||||
* @param {string} rootObjectId
|
||||
* @returns {User}
|
||||
*/
|
||||
export function createUserModel(userId, rootObjectId) {
|
||||
return { userId, rootObjectId };
|
||||
export function createUserModel(userId, name, rootObjectId) {
|
||||
return { userId, name, rootObjectId };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user