UNPKG

recoder-code

Version:

🚀 AI-powered development platform - Chat with 32+ models, build projects, automate workflows. Free models included!

23 lines (22 loc) • 640 B
import { OpenAPIV3, OpenAPIFrameworkArgs } from './types'; export interface Spec { apiDoc: OpenAPIV3.DocumentV3 | OpenAPIV3.DocumentV3_1; basePaths: string[]; routes: RouteMetadata[]; serial: number; } export interface RouteMetadata { basePath: string; expressRoute: string; openApiRoute: string; method: string; pathParams: string[]; } export declare const sortRoutes: (r1: any, r2: any) => 1 | -1; export declare class OpenApiSpecLoader { private readonly framework; constructor(opts: OpenAPIFrameworkArgs); load(): Promise<Spec>; private discoverRoutes; private toExpressParams; }