@sigyl-dev/cli
Version:
Official Sigyl CLI for installing and managing MCP packages. Zero-config installation for public packages, secure API-based authentication.
62 lines • 1.8 kB
TypeScript
export interface ExpressEndpoint {
method: string;
path: string;
handler: string;
description?: string;
parameters?: Array<{
name: string;
type: string;
required: boolean;
location: "path" | "query" | "body";
description?: string;
}>;
requestBody?: {
type: string;
properties?: Record<string, any>;
required?: string[];
};
responseType?: string;
responseSchema?: any;
}
export interface TypeInfo {
name: string;
type: string;
properties?: Record<string, any>;
required?: string[];
}
export declare class ExpressScanner {
private project;
private directory;
private typeCache;
private importedTypes;
constructor(directory: string);
scanForEndpoints(framework?: string): Promise<ExpressEndpoint[]>;
private collectTypes;
private extractImportsFromFile;
private extractTypesFromFile;
private extractTypeFromNode;
private extractJSDocDescription;
private findSourceFiles;
private scanFileForRoutes;
private extractStringValue;
private extractHandlerInfo;
private extractRouteDescription;
private extractRouteParameters;
private analyzeHandlerTypes;
private analyzeRequestUsage;
private analyzeDestructuredQuery;
private analyzeDestructuredBody;
private analyzeDestructuredParams;
private inferParameterType;
private analyzeTypedBodyUsage;
private analyzeTypedQueryUsage;
private analyzeTypedParamsUsage;
private analyzeBodyUsage;
private analyzeParamsUsage;
private analyzeQueryUsage;
private analyzeResponseType;
private analyzeResponseArgument;
private findParentFunction;
private inferResponseType;
}
//# sourceMappingURL=express-scanner.d.ts.map