UNPKG

@rxap/schematics-ts-morph

Version:

This package provides utilities for manipulating TypeScript code using ts-morph, particularly for Angular and NestJS projects. It offers functions to add, coerce, and modify code elements like classes, methods, decorators, and imports. The package also in

13 lines 634 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HasNestModuleClass = HasNestModuleClass; const is_nest_module_class_1 = require("./is-nest-module-class"); /** * @deprecated import from @rxap/ts-morph */ 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