skyflow-node
Version:
Skyflow SDK for Node.js
19 lines (18 loc) • 570 B
TypeScript
import { ISkyflow } from '../Skyflow';
import { Method } from 'axios';
export interface IClientRequest {
body?: any;
headers?: Record<string, string>;
requestMethod: Method;
url: string;
}
declare class Client {
#private;
config: ISkyflow;
constructor(config: ISkyflow, metadata: any);
convertRequestBody: (body: any, contentType: string) => any;
getHeaders: (data: any, headerKeys: any) => any;
request: (request: IClientRequest) => Promise<unknown>;
failureResponse: (err: any) => Promise<unknown>;
}
export default Client;