@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
13 lines • 795 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CoerceGetDataGridOperation = CoerceGetDataGridOperation;
const coerce_get_by_id_operation_1 = require("./coerce-get-by-id-operation");
function CoerceGetDataGridOperation(options) {
const { collection = false, isArray = collection !== null && collection !== void 0 ? collection : false,
// if not explicitly defined the idProperty is set to null, as not each data grid operation has an id
idProperty = null, operationName = idProperty ? 'getById' : 'get', } = options;
return (0, coerce_get_by_id_operation_1.CoerceGetByIdOperation)(Object.assign(Object.assign({}, options), { operationName,
idProperty,
isArray }));
}
//# sourceMappingURL=coerce-get-data-grid-operation.js.map