UNPKG

@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

4 lines (3 loc) 381 B
import { ArrayLiteralExpression, Expression, ObjectLiteralExpression } from 'ts-morph'; import { ProviderObject } from './provider-object'; export declare function AddProviderToArray(providerObject: ProviderObject | string, providerArray: ArrayLiteralExpression, overwrite?: boolean | string[], compare?: (ole: ObjectLiteralExpression, po: ProviderObject) => boolean): Expression;