@storybook/addon-docs
Version:
Document component usage and properties in Markdown
20 lines (15 loc) • 329 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.str = void 0;
var str = function str(obj) {
if (!obj) {
return '';
}
if (typeof obj === 'string') {
return obj;
}
throw new Error("Description: expected string, got: ".concat(JSON.stringify(obj)));
};
exports.str = str;
;