@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
14 lines (13 loc) • 405 B
TypeScript
import { WriterFunction } from 'ts-morph';
/**
* @deprecated import from @rxap/ts-morph
*/
export interface NestProviderObject {
provide: string | WriterFunction;
useClass?: string | WriterFunction;
scope?: '0' | '1' | '2';
useFactory?: string | WriterFunction;
inject?: string[] | WriterFunction;
useExisting?: string | WriterFunction;
useValue?: string | WriterFunction;
}