@yagisumi/groonga-http-client
Version:
groonga http client with axios
21 lines (20 loc) • 611 B
TypeScript
export declare function chomp(str: string, rs: string): string;
export declare function isArrayBuffer(obj: any): boolean;
declare type OK = {
error: undefined;
value: any;
};
declare type ERR = {
error: Error;
value: null;
};
declare type Result = OK | ERR;
declare function ERR(error: Error): ERR;
declare function OK(value: any): OK;
export declare class GroongaError extends Error {
readonly response: any;
readonly returnCode?: number;
constructor(message: string, response: any, returnCode?: number);
}
export declare function getResponseBody(response: any): Result;
export {};