@rxap/ts-morph
Version:
Provides utilities for manipulating TypeScript code using the ts-morph library. It offers a fluent API to add, modify, and remove code elements such as classes, decorators, imports, and properties in both Angular and NestJS projects. This package simplifi
10 lines • 584 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.HasNestModuleClass = HasNestModuleClass;
const is_nest_module_class_1 = require("./is-nest-module-class");
function HasNestModuleClass(file) {
return !!file.getClass(is_nest_module_class_1.IsNestModuleClass) &&
!!file.getImportDeclaration(importDeclaration => importDeclaration.getModuleSpecifierValue() === '@nestjs/common' &&
!!importDeclaration.getNamedImports().find(namedImport => namedImport.getName() === 'Module'));
}
//# sourceMappingURL=has-nest-module-class.js.map