UNPKG

@square/web-payments-sdk-types

Version:

Types for Square's Web Payments SDK

39 lines (38 loc) 1.27 kB
import { SqError } from './types'; /** * A provided style property is invalid for the payment method. */ declare class InvalidInputStylePropertyError extends SqError { /** * @param {string} property */ constructor(property: string); } /** * A provided style value is invalid for the property. */ declare class InvalidInputStyleValueError extends SqError { /** * @param {string} property * @param {string} value */ constructor(property: string, value: string); } /** * A provided style selector is invalid or unsupported. */ declare class InvalidInputStyleSelectorError extends SqError { /** * @param {string} selector */ constructor(selector: string); } /** * An aggregated set of style class errors including all of the issues * related to styles provided by an application. */ declare class InvalidStylesError extends SqError { readonly errors: (InvalidInputStyleValueError | InvalidInputStylePropertyError | InvalidInputStyleSelectorError)[]; constructor(errors: (InvalidInputStyleValueError | InvalidInputStylePropertyError | InvalidInputStyleSelectorError)[]); } export { InvalidInputStyleSelectorError, InvalidInputStylePropertyError, InvalidInputStyleValueError, InvalidStylesError, };