UNPKG

@square/web-payments-sdk-types

Version:

Types for Square's Web Payments SDK

38 lines (37 loc) 1.17 kB
import { SqError } from './types'; /** * A provided style property is invalid for the payment method. */ export declare class InvalidInputStylePropertyError extends SqError { /** * @param {string} property */ constructor(property: string); } /** * A provided style value is invalid for the property. */ export declare class InvalidInputStyleValueError extends SqError { /** * @param {string} property * @param {string} value */ constructor(property: string, value: string); } /** * A provided style selector is invalid or unsupported. */ export 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. */ export declare class InvalidStylesError extends SqError { readonly errors: (InvalidInputStyleValueError | InvalidInputStylePropertyError | InvalidInputStyleSelectorError)[]; constructor(errors: (InvalidInputStyleValueError | InvalidInputStylePropertyError | InvalidInputStyleSelectorError)[]); }