UNPKG

@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

12 lines (11 loc) 1.09 kB
import { OperationParameter } from '@rxap/ts-morph'; import { ClassDeclaration, SourceFile, WriterFunction } from 'ts-morph'; import { CoerceDtoClassOutput } from '@rxap/ts-morph'; import { CoerceGetControllerOptions } from './coerce-get-operation'; import { TransformOperation } from '@rxap/ts-morph'; export interface CoerceGetByIdControllerOptions extends CoerceGetControllerOptions { idProperty?: OperationParameter | null; } export declare function BuildUpstreamGetByIdParametersImplementation(classDeclaration: ClassDeclaration, moduleSourceFile: SourceFile, dto: CoerceDtoClassOutput | null, options: Readonly<CoerceGetByIdControllerOptions>): TransformOperation<string | WriterFunction>; export declare function BuiltGetByIdDtoDataMapperImplementation(classDeclaration: ClassDeclaration, moduleSourceFile: SourceFile, dto: CoerceDtoClassOutput | null, options: Readonly<CoerceGetByIdControllerOptions>): TransformOperation<string | WriterFunction>; export declare function CoerceGetByIdOperation(options: CoerceGetByIdControllerOptions): import("@angular-devkit/schematics").Rule;