@traversets/code-extractor
Version:
The TypeScript Code Extractor and Analyzer can be handy for RAG (Retrieval-Augmented Generation) systems for codebases. It provides a detailed and structured representation of the codebase that can be converted into embeddings, enabling more effective adv
11 lines (10 loc) • 344 B
TypeScript
export declare class Result<T> {
isSuccess: boolean;
private data?;
message?: string;
errorCode?: number;
constructor(isSuccess: boolean, data?: any, message?: string, errorCode?: number);
getValue(): T;
static ok<U>(data: U, message?: string): Result<U>;
static fail<U>(data: U, message?: string): Result<U>;
}