@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) • 868 B
TypeScript
import { NormalizedIdentifierOptions } from '@rxap/ts-morph';
import { TsMorphAngularProjectTransformOptions } from '@rxap/workspace-ts-morph';
import { ClassDeclaration, MethodDeclarationStructure, Project, SourceFile, WriterFunction } from 'ts-morph';
export interface CoerceProxyRemoteMethodClassOptions extends TsMorphAngularProjectTransformOptions {
name: string;
override?: boolean;
tsMorphTransform?: (project: Project, sourceFile: SourceFile, classDeclaration: ClassDeclaration) => Partial<MethodDeclarationStructure> | void;
sourceType: string | WriterFunction;
targetType: string | WriterFunction;
proxyMethod: string | WriterFunction;
identifier?: NormalizedIdentifierOptions | null;
}
export declare function CoerceProxyRemoteMethodClass(options: CoerceProxyRemoteMethodClassOptions): import("@angular-devkit/schematics").Rule;