expodoc
Version:
A tool to generate API documentation automatically for Express.js applications.
25 lines (21 loc) • 499 B
TypeScript
import type { ExpressDocGenConfigType } from "./config";
export interface RouteParserOptions {
/**
* @description The path to the project root directory.
* @example "."
*/
projectPath?: string;
config?: Partial<ExpressDocGenConfigType>;
}
export interface RouteChain {
content: string;
startPos: number;
endPos: number;
}
export interface Route {
router: string;
method: string;
url: string;
controller: string;
middlewares: string[];
}