@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
12 lines (11 loc) • 555 B
TypeScript
import { DataProperty, NormalizedDataProperty } from '../data-property';
import { Normalized } from '@rxap/utilities';
export interface DtoClassProperty extends DataProperty {
/**
* indicates that the @Type decorator should be used as the type of the property is another dto class
*/
isType?: boolean;
}
export interface NormalizedDtoClassProperty extends Normalized<Pick<DtoClassProperty, 'isType'>>, NormalizedDataProperty {
}
export declare function NormalizeDataClassProperty(property: DtoClassProperty): NormalizedDtoClassProperty;