UNPKG

@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

7 lines (6 loc) 331 B
import { ClassDeclaration, SourceFile } from 'ts-morph'; export interface CoerceNestModuleOptions { name: string; tsMorphTransform?: (sourceFile: SourceFile, classDeclaration: ClassDeclaration) => void; } export declare function CoerceNestModule(sourceFile: SourceFile, options: CoerceNestModuleOptions): ClassDeclaration;