@rxap/ts-morph
Version:
Provides utilities for manipulating TypeScript code using the ts-morph library. It offers a fluent API to add, modify, and remove code elements such as classes, decorators, imports, and properties in both Angular and NestJS projects. This package simplifi
15 lines (14 loc) • 532 B
TypeScript
import { ImportDeclarationStructure, OptionalKind, Scope, SourceFile } from 'ts-morph';
export declare enum Module {
ANGULAR = "@angular/core",
NEST = "@nestjs/common"
}
export interface InjectionDefinition {
injectionToken: string;
parameterName: string;
optional?: boolean;
type?: string;
scope?: Scope;
module: Module;
}
export declare function CoerceDependencyInjection(sourceFile: SourceFile, definition: InjectionDefinition, structures?: Array<OptionalKind<ImportDeclarationStructure>>): void;