/** * @typedef {Object} Root * @property {string} objectId * @property {'root'} type * @property {string[]} childIds */ /** * Create a Root object. * * @param {string} objectId * @param {string[]} [childIds=[]] * @returns {Root} */ export function createRootModel(objectId, childIds = []) { return { objectId, type: 'root', childIds }; }