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

11 lines (10 loc) 695 B
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 CoerceFormProvider(sourceFile: SourceFile, providerObject: ProviderObject | string): void; export interface CoerceFormProviderRuleOptions extends TsMorphAngularProjectTransformOptions { providerObject: ProviderObject | string; importStructures?: ReadonlyArray<OptionalKind<ImportDeclarationStructure>>; } export declare function CoerceFormProviderRule(options: CoerceFormProviderRuleOptions): Rule;