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

13 lines (12 loc) 524 B
import { SourceFile, WriterFunction } from 'ts-morph'; export interface CoerceNestAppConfigOptionsItem { name: string; type?: string; defaultValue?: string | WriterFunction; builder?: (item: Omit<CoerceNestAppConfigOptionsItem, 'builder'>) => string | WriterFunction; } export interface CoerceNestAppConfigOptions { itemList: Array<CoerceNestAppConfigOptionsItem>; overwrite?: boolean; } export declare function CoerceNestAppConfig(sourceFile: SourceFile, options: CoerceNestAppConfigOptions): void;