UNPKG

@hirosystems/api-toolkit

Version:
6 lines (5 loc) 254 B
/** * Checks if a given error from the pg lib is a connection error (i.e. the query is retryable). * If true then returns a normalized error message, otherwise returns false. */ export declare function isPgConnectionError(error: any): string | false;