@aws-amplify/core
Version:
Core category of aws-amplify
13 lines (12 loc) • 416 B
TypeScript
import { ErrorParser, HttpResponse } from '../types';
/**
* Utility functions for serializing and deserializing of JSON protocol in general(including: REST-JSON, JSON-RPC, etc.)
*/
/**
* Error parser for AWS JSON protocol.
*/
export declare const parseJsonError: ErrorParser;
/**
* Parse JSON response body to JavaScript object.
*/
export declare const parseJsonBody: (response: HttpResponse) => Promise<any>;