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

5 lines (4 loc) 513 B
import { ArrayLiteralExpression, Expression, WriterFunction } from 'ts-morph'; export declare function FindArrayElementByObjectProperty(property: string, value: string): (e: Expression) => boolean; export declare function DefaultFindExistingElement(element: string): (e: Expression) => boolean; export declare function CoerceArrayElement(array: ArrayLiteralExpression, element: string | WriterFunction, findExisting?: (e: Expression) => boolean, insertAt?: (array: ArrayLiteralExpression) => number): Expression;