@keplr-ewallet/ewallet-sdk-cosmos
Version:
13 lines (12 loc) • 468 B
TypeScript
interface SimpleFetchRequestOptions extends RequestInit {
validateStatus?: (status: number) => boolean;
}
interface SimpleFetchResponse<R> {
readonly url: string;
readonly data: R;
readonly headers: Headers;
readonly status: number;
readonly statusText: string;
}
export declare function simpleFetch<R>(baseURL: string, url?: string | SimpleFetchRequestOptions, options?: SimpleFetchRequestOptions): Promise<SimpleFetchResponse<R>>;
export {};