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

15 lines 801 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CoerceTableActionIndexRule = CoerceTableActionIndexRule; const coerce_source_file_1 = require("../coerce-source-file"); const coerce_variable_declaration_1 = require("../coerce-variable-declaration"); const ts_morph_transform_1 = require("../ts-morph-transform"); function CoerceTableActionIndexRule(options) { return (0, ts_morph_transform_1.TsMorphAngularProjectTransformRule)(options, (project) => { const sourceFile = (0, coerce_source_file_1.CoerceSourceFile)(project, 'index.ts'); (0, coerce_variable_declaration_1.CoerceVariableDeclaration)(sourceFile, 'TABLE_ROW_ACTION_METHODS', { initializer: '[]', }); }); } //# sourceMappingURL=coerce-table-action-index.js.map