Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function createTreeId({contentId, parentId}: { contentId: id, parentId: id }): id {
const objectToStringify = {
contentId,
parentId
};
const stringified = stringify(objectToStringify);
const treeId = md5(stringified);
return treeId;
}