@3kles/3kles-corebe
Version:
3KLES Core BackEnd
16 lines (15 loc) • 435 B
TypeScript
interface IGenericAPI {
buildRequest(params: any, originDataRequest?: any, dataBody?: string): any;
executeRequest(options: any, requestOption?: {
signal?: AbortSignal;
}): Promise<{
statusCode: number;
headers: any;
body: any;
}>;
processResponse(response: any): any;
processError(error: any): any;
beforeExecute(): void;
afterExecute(): void;
}
export { IGenericAPI };