typedoc-neo-theme
Version:
Improved theme for Typedoc
28 lines (27 loc) • 908 B
JavaScript
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define(["require", "exports"], factory);
}
})(function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.json = void 0;
/**
* Converts a JSON input to a serialized string. This is useful for debugging.
*
* @param json The JSON object that should be updated.
* @return The serialized string.
*/
function json(json) {
if (typeof json === 'string') {
console.warn('Warning - Type is string, not object:', json);
return json;
}
return JSON.stringify(json);
}
exports.json = json;
});