mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
17 lines
294 B
JavaScript
17 lines
294 B
JavaScript
|
|
/**
|
|
Encode a SummaryArticle to JSON
|
|
|
|
@param {GlossaryEntry}
|
|
@return {Object}
|
|
*/
|
|
function encodeGlossaryEntry(entry) {
|
|
return {
|
|
id: entry.getID(),
|
|
name: entry.getName(),
|
|
description: entry.getDescription()
|
|
};
|
|
}
|
|
|
|
module.exports = encodeGlossaryEntry;
|