UNPKG

nestjs-redox

Version:

This NestJS module enables to auto-generate beautiful API docs using Swagger and Redoc. It supports NestJS 10, ExpressJS and Fastify.

21 lines (20 loc) 699 B
"use strict"; // source: https://github.com/Redocly/redoc/blob/main/docs/config.md Object.defineProperty(exports, "__esModule", { value: true }); exports.NestJSRedoxOptions = void 0; class NestJSRedoxOptions { constructor(partial) { // served path on that the redoc is available this.useGlobalPrefix = false; this.disableGoogleFont = false; /** * Enable this if you want to serve your own redoc installation. You have to install redoc as dependency. * @default: false */ this.standalone = false; if (partial) { Object.assign(this, partial); } } } exports.NestJSRedoxOptions = NestJSRedoxOptions;