UNPKG

638 BJavaScriptView Raw
1// Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.
2
3var jsrefCommon = require('./JavaScriptReference.common.js');
4
5exports.transform = function (model) {
6 model = jsrefCommon.transform(model);
7 if (model.type.toLowerCase() === "enum") {
8 model.isClass = false;
9 model.isEnum = true;
10 }
11 model._disableToc = model._disableToc || !model._tocPath || (model._navPath === model._tocPath);
12
13 return { item: model };
14}
15
16exports.getOptions = function (model) {
17 return { "bookmarks": jsrefCommon.getBookmarks(model) };
18}
\No newline at end of file