@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
15 lines (14 loc) • 606 B
TypeScript
import { Rule } from '@angular-devkit/schematics';
import { CoerceOperationOptions as NEW_CoerceOperationOptions } from '@rxap/ts-morph';
import { TsMorphNestProjectTransformOptions } from '@rxap/workspace-ts-morph';
export interface CoerceOperationOptions extends TsMorphNestProjectTransformOptions, NEW_CoerceOperationOptions {
controllerName: string;
shared?: boolean;
nestModule?: string | null;
skipCoerce?: boolean;
backend: {
project?: string | null;
kind: any;
} | undefined;
}
export declare function CoerceOperation(options: CoerceOperationOptions): Rule;