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

9 lines 423 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CoerceClassImplementation = CoerceClassImplementation; function CoerceClassImplementation(classDeclaration, implementation) { if (!classDeclaration.getImplements().some(impl => impl.getText() === implementation)) { classDeclaration.addImplements(implementation); } } //# sourceMappingURL=coerce-class-implementation.js.map