UNPKG

@altostra/core

Version:

Core library for shared types and logic

10 lines (9 loc) 439 B
import type { AWSError } from 'aws-sdk'; export { isDynamoDBConditionalCheckFailureError } from "./DynamoDB/common"; /** * `AWSError` is not a actual class (you cannot use `instanceof` with it)\ * Use this function to determine if an error is an `AWSError`. * @param err The error to check. * @returns `true` if the provided error is an `AWSError`; otherwise `false`. */ export declare function isAWSError(err: any): err is AWSError;