@nestjs/swagger
Version:
OpenAPI for NestJS: generate the API document from controllers and decorators, serve Swagger UI, and derive request types with mapped types.
5 lines (4 loc) • 366 B
TypeScript
import { OpenAPIObject, SwaggerCustomOptions } from '../interfaces/index.js';
export declare function buildSwaggerInitJS(swaggerDoc: OpenAPIObject, customOptions?: SwaggerCustomOptions): string;
export declare function getSwaggerAssetsAbsoluteFSPath(): string;
export declare function buildSwaggerHTML(baseUrl: string, customOptions?: SwaggerCustomOptions): string;