featherbone-shipengine
Version:
Forked and patched version of the official ShipEngine JavaScript SDK for Node.js
15 lines (14 loc) • 400 B
TypeScript
declare type StructuredError = {
request_id: string;
errors: [
{
error_source: string;
error_type: string;
error_code: string;
message: string;
}
];
};
export declare function isNetworkStructuredError(error: any): error is StructuredError;
export declare function handle400Errors(body: StructuredError): unknown;
export {};