open-index/open-npm huggingface dataset:
npm package: @square/web-payments-sdk-types
Description: Types for Square's Web Payments SDK
Latest version: 1.83.2

# @square/web-payments-sdk-types

TypeScript type definitions for the [Web Payments SDK](https://developer.squareup.com/docs/web-payments/overview).

The types defined in this package are documented in the [Developer Reference for Web Payments SDK](https://developer.squareup.com/reference/sdks/web/payments).

## Usage

This package provides declaration files (`d.ts`). Once this package is added to the [typeRoots](https://www.typescriptlang.org/tsconfig#typeRoots) as part of the `tsconfig.json`, initiating a payments instance using `window.Square.payments` will provide typechecking and autocompletion automatically.
Developers can also import any type definition listed in the [developer reference](https://developer.squareup.com/reference/sdks/web/payments).

## LICENSE

    Copyright 2023 Block, Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.