@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) • 657 B
TypeScript
import { Rule } from '@angular-devkit/schematics';
import { ImportDeclarationStructure, OptionalKind, SourceFile } from 'ts-morph';
import { ProviderObject } from '../provider-object';
export declare function CoerceFormBuilderProvider(sourceFile: SourceFile, providerObject: ProviderObject | string): void;
export interface CoerceFormBuilderProviderRuleOptions {
project: string;
feature?: string;
directory?: string;
}
export declare function CoerceFormBuilderProviderRule(options: CoerceFormBuilderProviderRuleOptions, providerObject: ProviderObject | string, importStructures?: ReadonlyArray<OptionalKind<ImportDeclarationStructure>>): Rule;