UNPKG

@nestia/sdk

Version:

Nestia SDK and Swagger generator

27 lines (26 loc) 712 B
import { RequestMethod } from "@nestjs/common"; import { VersionValue } from "@nestjs/common/interfaces"; export interface INestiaSdkInput { controllers: INestiaSdkInput.IController[]; globalPrefix?: { prefix: string; exclude?: INestiaSdkInput.IGlobalPrefixExclude[]; }; versioning?: { prefix: string; defaultVersion?: VersionValue; }; } export declare namespace INestiaSdkInput { interface IController { class: Function; location: string; prefixes: string[]; } interface IGlobalPrefixExclude { path: string; method?: RequestMethod; requestMethod?: RequestMethod; pathRegex?: RegExp; } }