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

17 lines (16 loc) 750 B
import { Rule } from '@angular-devkit/schematics'; import { ClassDeclaration, Project, SourceFile } from 'ts-morph'; import { TsMorphNestProjectTransformOptions } from '../ts-morph-transform'; export interface CoerceNestControllerOptions extends TsMorphNestProjectTransformOptions { name: string; nestModule?: string; controllerPrefix?: string; coerceModule?: boolean; tsMorphTransform?: (project: Project, sourceFile: SourceFile, classDeclaration: ClassDeclaration, options: CoerceNestControllerOptions) => void; skipModuleImport?: boolean; overwrite?: boolean; backend: { project?: string | null; } | undefined; } export declare function CoerceNestController(options: CoerceNestControllerOptions): Rule;