more boilerplate and dev environment

This commit is contained in:
2026-07-16 16:04:48 -07:00
parent ea34be4e1b
commit a06f21a5c2
27 changed files with 670 additions and 27 deletions
+17
View File
@@ -0,0 +1,17 @@
/**
* @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 };
}