UNPKG

@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

12 lines 473 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetVariableDeclaration = GetVariableDeclaration; function GetVariableDeclaration(sourceFile, name) { var _a; const variableStatement = sourceFile.getVariableStatement(name); if (variableStatement) { return (_a = variableStatement.getDeclarations()[0]) !== null && _a !== void 0 ? _a : null; } return null; } //# sourceMappingURL=get-variable-declaration.js.map