@nestjs/swagger
Version:
Nest - modern, fast, powerful node.js web framework (@swagger)
9 lines (8 loc) • 503 B
TypeScript
import { INestApplication } from '@nestjs/common';
import { OpenAPIObject, SwaggerCustomOptions, SwaggerDocumentOptions } from './interfaces';
export declare class SwaggerModule {
static createDocument(app: INestApplication, config: Omit<OpenAPIObject, 'paths'>, options?: SwaggerDocumentOptions): OpenAPIObject;
static setup(path: string, app: INestApplication, document: OpenAPIObject, options?: SwaggerCustomOptions): void;
private static setupExpress;
private static setupFastify;
}