@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
11 lines (10 loc) • 731 B
TypeScript
import { Rule } from '@angular-devkit/schematics';
import { ImportDeclarationStructure, OptionalKind, SourceFile } from 'ts-morph';
import { ProviderObject } from '../provider-object';
import { TsMorphAngularProjectTransformOptions } from '../ts-morph-transform';
export declare function CoerceFormComponentProvider(sourceFile: SourceFile, providerObject: ProviderObject | string): void;
export interface CoerceFormComponentProviderRuleOptions extends TsMorphAngularProjectTransformOptions {
providerObject: ProviderObject | string;
importStructures?: ReadonlyArray<OptionalKind<ImportDeclarationStructure>>;
}
export declare function CoerceFormComponentProviderRule(options: CoerceFormComponentProviderRuleOptions): Rule;