UNPKG

@rxap/schematics-ts-morph

Version:

This package provides utilities for manipulating TypeScript code using ts-morph, particularly for Angular and NestJS projects. It offers functions to add, coerce, and modify code elements like classes, methods, decorators, and imports. The package also in

13 lines (12 loc) 579 B
import { Rule } from '@angular-devkit/schematics'; import { ClassDeclaration, Project, SourceFile } from 'ts-morph'; import { TsMorphNestProjectTransformOptions } from '../ts-morph-transform'; export interface CoerceNestModuleOptions extends TsMorphNestProjectTransformOptions { name: string; tsMorphTransform?: (project: Project, sourceFile: SourceFile, classDeclaration: ClassDeclaration) => void; backend: { project?: string | null; kind?: any; } | undefined; } export declare function CoerceNestModule(options: CoerceNestModuleOptions): Rule;