@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
13 lines (12 loc) • 664 B
TypeScript
import { DecoratableNode, Decorator, DecoratorStructure, OptionalKind } from 'ts-morph';
import { FindFunctionFactory } from './find-function';
/**
* @deprecated import from @rxap/ts-morph
*/
export declare function CoerceDecorator(decoratableNode: DecoratableNode, name: string, structure?: Partial<Omit<OptionalKind<DecoratorStructure>, 'name'>>, compareTo?: FindFunctionFactory<Partial<DecoratorStructure>, Decorator>): Decorator;
/**
* @deprecated Use the overload with the name parameter
*/
export declare function CoerceDecorator(decoratableNode: DecoratableNode, structure: Partial<OptionalKind<DecoratorStructure>> & {
name: string;
}): Decorator;