quickwire
Version:
Automatic API generator for Next.js applications that creates API routes and TypeScript client functions from backend functions
10 lines • 850 B
TypeScript
import ts from "typescript";
import { ExportedFunction, ExportedType, ModuleExports } from "./types";
export declare function analyzeModuleExports(filePath: string): ModuleExports;
export declare function hasExportModifier(node: ts.Node): boolean;
export declare function analyzeFunctionDeclaration(node: ts.FunctionDeclaration): ExportedFunction;
export declare function analyzeVariableStatement(node: ts.VariableStatement): ExportedFunction[];
export declare function analyzeTypeDeclaration(node: ts.Node): ExportedType | null;
export declare function detectHttpMethod(functionName: string, parameters?: ExportedFunction["parameters"]): string;
export declare function detectContextUsage(node: ts.FunctionDeclaration | ts.ArrowFunction | ts.FunctionExpression, parameters: ExportedFunction["parameters"]): boolean;
//# sourceMappingURL=ast.d.ts.map