@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
9 lines (8 loc) • 626 B
TypeScript
import { ClassDeclaration, ObjectLiteralExpression, Project, SourceFile } from 'ts-morph';
import { TsMorphAngularProjectTransformOptions } from '../ts-morph-transform';
export interface CoerceComponentClassRuleOptions extends TsMorphAngularProjectTransformOptions {
componentName: string;
selector?: string;
tsMorphTransform?: (project: Project, sourceFile: SourceFile, classDeclaration: ClassDeclaration, componentDecoratorObject: ObjectLiteralExpression) => void;
}
export declare function CoerceComponentClassRule(options: Readonly<CoerceComponentClassRuleOptions>): import("@angular-devkit/schematics").Rule;