UNPKG

@bdcode/sms

Version:

Unified (BD) SMS Providers client package for all TS/JS applications

11 lines 788 B
export declare const httpRequestTypes: readonly ["get", "post"]; export type HttpRequestType = (typeof httpRequestTypes)[number]; export declare const commonHttpReqContentTypes: readonly ["application/json", "application/x-www-form-urlencoded"]; export type CommonHttpReqContentType = (typeof commonHttpReqContentTypes)[number]; export type IRequestHeaders = { "Content-Type": CommonHttpReqContentType; [key: string]: string | number | boolean | undefined; }; export declare const composeHeaders: (headers: IRequestHeaders) => Record<string, string>; export declare const axApiCall: <R = unknown>(method: HttpRequestType, endpoint: string, headers?: Record<string, string>, body?: unknown, target?: "form" | "json") => Promise<NonNullable<R>>; //# sourceMappingURL=common.d.ts.map