UNPKG

@square/web-payments-sdk-types

Version:

Types for Square's Web Payments SDK

31 lines (30 loc) 864 B
import { SqError } from './types'; /** * The specified field name is invalid */ export declare class InvalidFieldNameError extends SqError { /** * @inheritDoc */ constructor(name: string); } /** * The specified option name does not exist */ export declare class InvalidConfigurationPropertyError extends SqError { /** * @param {string} property - the invalid configuration property */ constructor(property: string); } /** * The specified option has an invalid value */ export declare class InvalidConfigurationValueError extends SqError { /** * @param {string} property - the invalid configuration property * @param {string} value - the invalid configuration value (in string form) * @param {string} message - custom message */ constructor(property: string, value: string, message?: string); }