@rxap/ts-morph
Version:
Provides utilities for manipulating TypeScript code using the ts-morph library. It offers a fluent API to add, modify, and remove code elements such as classes, decorators, imports, and properties in both Angular and NestJS projects. This package simplifi
15 lines • 666 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.NormalizeAccordionIdentifier = NormalizeAccordionIdentifier;
const data_property_1 = require("./data-property");
function NormalizeAccordionIdentifier(identifier) {
var _a;
if (!identifier || Object.keys(identifier).length === 0 || Object.keys(identifier.property).length === 0 || identifier.property.name === undefined) {
return null;
}
return {
property: (0, data_property_1.NormalizeDataProperty)(identifier.property),
source: (_a = identifier.source) !== null && _a !== void 0 ? _a : null,
};
}
//# sourceMappingURL=identifier.js.map