UNPKG

@devcycle/js-client-sdk

Version:

The Javascript Client SDK for DevCycle

12 lines (11 loc) 821 B
import { RequestInitWithRetry } from 'fetch-retry'; export declare class ResponseError extends Error { constructor(message: string); status: number; } export declare const exponentialBackoff: RequestInitWithRetry['retryDelay']; export declare function handleResponse(res: Response): Promise<Response>; export declare function getWithTimeout(url: string, requestConfig: RequestInit | RequestInitWithRetry, timeout: number): Promise<Response>; export declare function post(url: string, requestConfig: RequestInit | RequestInitWithRetry, sdkKey: string): Promise<Response>; export declare function patch(url: string, requestConfig: RequestInit | RequestInitWithRetry, sdkKey: string): Promise<Response>; export declare function get(url: string, requestConfig: RequestInit | RequestInitWithRetry): Promise<Response>;