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

3 lines (2 loc) 286 B
import { ClassDeclaration, MethodDeclarationStructure, OptionalKind } from 'ts-morph'; export declare function CoerceClassMethod(classDeclaration: ClassDeclaration, name: string, structure?: Omit<OptionalKind<MethodDeclarationStructure>, 'name'>): import("ts-morph").MethodDeclaration;