UNPKG

serverstruct

Version:

Type safe and modular servers with H3

20 lines (18 loc) 756 B
import { html } from "h3"; import { renderApiReference, renderApiReference as renderApiReference$1 } from "@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 html(renderApiReference$1(options, customTheme)); } //#endregion export { apiReference, renderApiReference };