Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function get_type_deps() {
const types = {"": []};
for (const type of get_types()) {
types[type] = [];
let parent = type;
while (parent && parent.length) {
types[type].unshift(parent);
parent = get_type_config(parent).type;
}
}
return types;
}