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

14 lines 466 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CoerceSourceFile = CoerceSourceFile; /** * @deprecated import from @rxap/ts-morph */ function CoerceSourceFile(project, fileNameOrPath, content) { let sourceFile = project.getSourceFile(fileNameOrPath); if (!sourceFile) { sourceFile = project.createSourceFile(fileNameOrPath, content); } return sourceFile; } //# sourceMappingURL=coerce-source-file.js.map