UNPKG

serverstruct

Version:

Type safe and modular servers with H3

26 lines (24 loc) 917 B
let h3 = require("h3"); let _scalar_client_side_rendering = require("@scalar/client-side-rendering"); //#region src/openapi.scalar.ts /** * Renders a Scalar API reference UI as an HTML string. * * @experimental This API is experimental and may change in future versions. * * @param options.config - Scalar API reference configuration. * @param options.pageTitle - Page title. Defaults to "Scalar API Reference". * @param options.cdn - CDN URL for the standalone bundle. Defaults to jsDelivr. * @param customTheme - Custom CSS theme for the Scalar UI. */ function apiReference(options, customTheme) { return (0, h3.html)((0, _scalar_client_side_rendering.renderApiReference)(options, customTheme)); } //#endregion exports.apiReference = apiReference; Object.defineProperty(exports, 'renderApiReference', { enumerable: true, get: function () { return _scalar_client_side_rendering.renderApiReference; } });