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

17 lines 762 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CoerceGetChildrenOperation = CoerceGetChildrenOperation; const utilities_1 = require("@rxap/utilities"); const coerce_get_root_operation_1 = require("./coerce-get-root-operation"); function CoerceGetChildrenOperation(options) { const { paramList = [], operationName = 'get-children', } = options; (0, utilities_1.CoerceArrayItems)(paramList, [ { name: 'parentUuid', type: 'string', } ], (a, b) => a.name === b.name); return (0, coerce_get_root_operation_1.CoerceGetRootOperation)(Object.assign(Object.assign({}, options), { operationName, paramList })); } //# sourceMappingURL=coerce-get-children-operation.js.map