Wondering what’s next for npm?Check out our public roadmap! »

This package has been deprecated

Author message:

renamed to pagarme-js-types

pagarme-js-typeTypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Pagar.me JavaScript Types

npm (scoped) semantic-release

A unofficial repository for adding typing / typescript compatibility for Pagar.me.

It's a work in progress. All type definition are take from the official documentation API Pagar.me V4 and official pagarme-js documentation

What are declaration files?

See the TypeScript handbook.

How do I get them?

npm

This is the preferred method. For example:

npm install --save-dev pagarme-js-types

The types should then be automatically included by the compiler. You may need to add a types reference if you're not using modules:

/// <reference types="pagarme-js-types" />

See more in the handbook.

To do

You can create a PR to contribute for now these functions are typed:

Transactions

  • all
  • capture
  • create
  • find
  • refund

Postback

  • calculateSignature
  • verifySignature

Refunds

  • find

Keywords

none

Install

npm i pagarme-js-type

DownloadsWeekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

53.2 kB

Total Files

10

Last publish

Collaborators

  • avatar