okai
Version:
AI-powered code generation tool for ServiceStack Apps. Generate TypeScript data models, C# APIs, migrations, and UI components from natural language prompts using LLMs.
18 lines • 751 B
TypeScript
import { ParsedAnnotation, ParsedClass, ParsedEnum, ParsedInterface, ParseResult } from "./ts-parser.js";
export declare class TsdGenerator {
export: boolean;
interfaces: string[];
enums: string[];
ast: ParseResult;
get typePrefix(): "" | "export ";
isEnumValue(value: string): boolean;
attrValue(type: string, value: any): any;
toAttr(attr: ParsedAnnotation): string;
toInterface(ast: ParsedInterface): string;
toClass(ast: ParsedInterface): string;
toType(ast: ParsedClass | ParsedInterface, type: "interface" | "class"): string;
toEnum(ast: ParsedEnum): string;
generate(ast: ParseResult): string;
}
export declare function toTsd(tsAst: ParseResult): string;
//# sourceMappingURL=tsd-gen.d.ts.map