@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
11 lines (10 loc) • 535 B
TypeScript
import { TsMorphAngularProjectTransformOptions } from '@rxap/workspace-ts-morph';
import { ClassDeclaration, Project, SourceFile } from 'ts-morph';
export interface CoercePipeOptions extends TsMorphAngularProjectTransformOptions {
name: string;
shared?: boolean;
valueType?: string;
pure?: boolean;
tsMorphTransform?: (project: Project, sourceFile: SourceFile, classDeclaration: ClassDeclaration) => void;
}
export declare function CoercePipe(options: CoercePipeOptions): import("@angular-devkit/schematics").Rule;