Files
OwOrganizer/frontend/src/lib/models/user.js
T

19 lines
367 B
JavaScript
Raw Normal View History

2026-07-16 16:04:48 -07:00
/**
* @typedef {Object} User
* @property {string} userId
2026-07-16 19:24:39 -07:00
* @property {string} name
2026-07-16 16:04:48 -07:00
* @property {string} rootObjectId
*/
/**
* Create a User object.
*
* @param {string} userId
2026-07-16 19:24:39 -07:00
* @param {string} name
2026-07-16 16:04:48 -07:00
* @param {string} rootObjectId
* @returns {User}
*/
2026-07-16 19:24:39 -07:00
export function createUserModel(userId, name, rootObjectId) {
return { userId, name, rootObjectId };
2026-07-16 16:04:48 -07:00
}