@square/web-payments-sdk-types
Version:
Types for Square's Web Payments SDK
23 lines (22 loc) • 737 B
TypeScript
import type { Square } from './square';
declare global {
interface Window {
/**
* The Web Payment SDK library adds a `Square` object to the browser's global window object under the property name `Square`;
* @example
* <script type="text/javascript" src="https://sandbox.web.squarecdn.com/v1/square.js"></script>
* <script>
* const payments = window.Square.payments(applicationId, locationId);
* </script>
*/
Square?: Square;
}
}
export {};
export * from './payment-method';
export * from './contact';
export * from './errors';
export * from './payment-request';
export * from './payments';
export * from './square';
export * from './verify-buyer';