UNPKG

@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.

12 lines (11 loc) 464 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isMultipleInjectDecorator = isMultipleInjectDecorator; 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); }