@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 • 364 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CoerceStatements = CoerceStatements;
/**
* @deprecated import from @rxap/ts-morph
*/
function CoerceStatements(node, statements) {
if (node.getStatements().length ===
0) {
node.addStatements(statements);
}
}
//# sourceMappingURL=coerce-statements.js.map