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

12 lines 419 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OverwriteProperty = OverwriteProperty; function OverwriteProperty(ole, name, initializer) { const property = ole.getProperty(name); property === null || property === void 0 ? void 0 : property.remove(); ole.addPropertyAssignment({ name, initializer, }); } //# sourceMappingURL=overwrite-property.js.map