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 1.3 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CoerceAutocompleteTableSelectValueResolveOperationRule = CoerceAutocompleteTableSelectValueResolveOperationRule; const utilities_1 = require("@rxap/utilities"); const coerce_operation_1 = require("./coerce-operation"); const coerce_table_select_value_resolve_operation_1 = require("./coerce-table-select-value-resolve-operation"); function CoerceAutocompleteTableSelectValueResolveOperationRule(options) { const { buildUpstreamGetParametersImplementation = coerce_table_select_value_resolve_operation_1.BuildTableSelectValueResolveUpstreamGetParametersImplementation, propertyList = [], rowDisplayProperty, rowValueProperty, } = options; (0, utilities_1.CoerceArrayItems)(propertyList, [ Object.assign(Object.assign({}, rowValueProperty), { name: 'value', source: rowValueProperty.name }), Object.assign(Object.assign({}, rowDisplayProperty), { name: 'display', source: rowDisplayProperty.name }), ], { compareTo: (a, b) => a.name === b.name, unshift: true }); return (0, coerce_operation_1.CoerceOperation)(Object.assign(Object.assign({}, options), { buildUpstreamGetParametersImplementation })); } //# sourceMappingURL=coerce-autocomplete-table-select-value-resolve-operation.js.map