@scalar/nextjs-api-reference
Version:
Next.js API route handler to serve beautiful, interactive API documentation from OpenAPI/Swagger documents.
19 lines (15 loc) • 650 B
TypeScript
import { HtmlRenderingConfiguration } from '@scalar/core/libs/html-rendering';
/**
* Next.js adapter for an Api Reference
*
* {@link https://github.com/scalar/scalar/tree/main/documentation/configuration.md Configuration}
*
* @params config - the Api Reference config object
* @params options - reserved for future use to add customization to the response
*/
export declare const ApiReference: (givenConfiguration: Partial<ApiReferenceConfiguration>) => (() => Response);
/**
* The configuration for the Scalar API Reference for Next.js
*/
declare type ApiReferenceConfiguration = HtmlRenderingConfiguration;
export { }