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

9 lines 393 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CoerceFunction = CoerceFunction; function CoerceFunction(sourceFile, name, structure = {}) { const functionDeclaration = sourceFile.getFunction(name) || sourceFile.addFunction({ name }); functionDeclaration.set(structure); return functionDeclaration; } //# sourceMappingURL=coerce-function.js.map