react-simple-api
Version:
Create and cache API requests and responses
9 lines (8 loc) • 388 B
TypeScript
declare const areObjectsEqual: <T>(obj1: T, obj2: T) => boolean;
declare const createRequest: ({ apiUrl, requestInfo, withContentTypeJSON, }: {
apiUrl: string;
requestInfo: RequestInit | undefined;
withContentTypeJSON?: boolean | undefined;
}) => Promise<Response>;
declare const normalizeError: (error: any) => any;
export { areObjectsEqual, createRequest, normalizeError };