more boilerplate and dev environment
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
Reference in New Issue
Block a user