@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
17 lines (16 loc) • 669 B
TypeScript
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>;
/**
* A list of function that will be called to expand the validation schema.
*/
expandList?: Array<string | WriterFunction>;
overwrite?: boolean;
}
export declare function CoerceNestAppConfig(sourceFile: SourceFile, options: CoerceNestAppConfigOptions): void;