@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
14 lines (13 loc) • 783 B
TypeScript
import { ClassDeclaration, Project, SourceFile } from 'ts-morph';
import { CoerceComponentOptions } from './coerce-component';
import { CoerceMethodClassOptions } from './coerce-method-class';
export interface CoerceTableHeaderButtonMethodOptions extends Omit<CoerceMethodClassOptions, 'name'> {
tableName: string;
tsMorphTransformComponent?: (project: Project, [componentSourceFile]: [SourceFile], [componentClass]: [ClassDeclaration], options: CoerceComponentOptions) => void;
refresh?: boolean;
confirm?: boolean;
tooltip?: string | null;
errorMessage?: string | null;
successMessage?: string | null;
}
export declare function CoerceTableHeaderButtonMethodRule(options: CoerceTableHeaderButtonMethodOptions): import("@angular-devkit/schematics").Rule;