UNPKG

@square/web-payments-sdk-types

Version:

Types for Square's Web Payments SDK

19 lines (18 loc) 483 B
import { SqError } from './types'; /** * A generic error to handle internal error conditions unrelated to the state or * of the application that is integrating the Web Payments SDK. * @example * try { * await ach.tokenize(); * } * catch (e) { * if (e instanceof UnexpectedError) { * alert(`The SDK had an unknown error ${e.message}`); * } * } */ declare class UnexpectedError extends SqError { constructor(actionText: string); } export { UnexpectedError };