UNPKG

swagger-auto-generate

Version:

Automatically generate Swagger JSDoc documentation for Express applications

40 lines 1.04 kB
import { RouteInfo } from '../types'; export declare class ASTParser { /** * Parse a JavaScript/TypeScript file and extract route information */ static parseFile(content: string, filePath: string): RouteInfo[]; /** * Recursively extract functions from Babel AST */ private static extractFunctions; /** * Parse a function declaration or expression */ private static parseFunction; /** * Parse an arrow function */ private static parseArrowFunction; /** * Check if a function is a route handler */ private static isRouteHandler; /** * Extract route information from function */ private static extractRouteInfo; /** * Create RouteInfo from ParsedFunction */ private static createRouteInfo; /** * Extract parameters from function */ private static extractParameters; /** * Extract responses from function */ private static extractResponses; } //# sourceMappingURL=astParser.d.ts.map