Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const getDeps = (target: Function): Array => {
let types:Array = Reflect.getMetadata("design:paramtypes", target) || [];
let deps = types.map((a: Function) => {
if (a) {
if (a.name !== "Object") {
return a.name;
} else {
return "props";
}
} else {
return "";
}
});
return deps;
};