@wroud/di-tools-codemod
Version:
@wroud/di-tools-codemod is a codemod utility that automates the migration of your codebase from Inversify to @wroud/di. It streamlines the transformation process, allowing for effortless and customizable transitions through configuration support.
10 lines • 425 B
JavaScript
import { Decorator } from "jscodeshift";
export function isMultipleInjectDecorator(packages, decorator) {
if (decorator.expression.type !== "CallExpression" ||
decorator.expression.callee.type !== "Identifier") {
return false;
}
const name = decorator.expression.callee.name;
return packages.some((p) => p.multiInjectDecorator === name);
}
//# sourceMappingURL=isMultipleInjectDecorator.js.map