UNPKG

@ivamuno/nestjs-openapi

Version:
11 lines (10 loc) 577 B
import { INestApplication } from '@nestjs/common'; import { SwaggerDocumentOptions } from '@nestjs/swagger'; import { RedocOptions } from '../redoc/interfaces'; import { AsyncAPIObject } from '.'; export interface AsyncApiDocumentOptions extends SwaggerDocumentOptions { } export declare class AsyncApiModule { static createDocument(app: INestApplication, config: Omit<AsyncAPIObject, 'channels'>, options?: AsyncApiDocumentOptions): AsyncAPIObject; static setup(path: string, app: INestApplication, document: AsyncAPIObject, options?: RedocOptions): void; }