UNPKG

react-http-fetch

Version:

An http library for React JS built on top of native JS fetch

9 lines (8 loc) 381 B
import { HttpEvent } from './events/http-event'; export declare enum HttpEventIdentifier { RequestStart = "RequestStart", RequestSucceded = "RequestSucceded", RequestErrored = "RequestErrored" } export declare type HttpEventHandler<PayloadT> = (payload: PayloadT) => void; export declare type HttpEventClassType<PayloadT> = new (...args: any[]) => HttpEvent<PayloadT>;