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

10 lines (9 loc) 490 B
import { DecoratorStructure, OptionalKind, PropertyDeclaration } from 'ts-morph'; /** * Overwrite the decorator of a control property. * * @param {PropertyDeclaration} controlProperty - The control property to overwrite the decorator for. * @param {OptionalKind<DecoratorStructure>} structure - The new decorator structure to use. * @return {void} */ export declare function OverwriteDecorator(controlProperty: PropertyDeclaration, structure: OptionalKind<DecoratorStructure>): void;