@rxap/ts-morph
Version:
Provides utilities for manipulating TypeScript code using the ts-morph library. It offers a fluent API to add, modify, and remove code elements such as classes, decorators, imports, and properties in both Angular and NestJS projects. This package simplifi
6 lines (5 loc) • 405 B
TypeScript
import { ClassDeclaration, OptionalKind, PropertyDeclaration, PropertyDeclarationStructure } from 'ts-morph';
/**
* @deprecated instead use the CoercePropertyDeclaration function from @rxap/ts-morph
*/
export declare function CoerceClassProperty(classDeclaration: ClassDeclaration, propertyName: string, propertyStructure: Omit<OptionalKind<PropertyDeclarationStructure>, 'name'>): PropertyDeclaration;