@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
11 lines (10 loc) • 488 B
TypeScript
import { ClassDeclaration, SourceFile } from 'ts-morph';
import { ToMappingObjectOptions } from './to-mapping-object';
export interface CoerceMappingClassMethodOptions {
parameterType: string;
mapping: boolean | Record<string, any>;
mappingOptions?: ToMappingObjectOptions;
name: string;
returnType: string;
}
export declare function CoerceMappingClassMethod(sourceFile: SourceFile, classDeclaration: ClassDeclaration, options: CoerceMappingClassMethodOptions): void;