17 lines
362 B
JavaScript
17 lines
362 B
JavaScript
"use strict";
|
|
/**
|
|
Encode a SummaryArticle to JSON
|
|
|
|
@param {GlossaryEntry}
|
|
@return {Object}
|
|
*/
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
function encodeGlossaryEntry(entry) {
|
|
return {
|
|
id: entry.getID(),
|
|
name: entry.getName(),
|
|
description: entry.getDescription()
|
|
};
|
|
}
|
|
exports.default = encodeGlossaryEntry;
|