agisboye / app-store-server-api

A Node.js client for the App Store Server API
MIT License
218 stars 36 forks source link

Property 'decodeTransactions' does not exist on type 'AppStoreServerAPI'.ts(2339) #16

Closed josephkkin closed 2 years ago

josephkkin commented 2 years ago

The types definition files needs to be updated for the latest updates.

josephkkin commented 2 years ago

After a bit of investigating the issue, noticed that the documentation of the usage of decodeTransactions on the NPM repo site is different from the README in the Git repo.

The NPM site mentions it as follows. // Decoding not only reveals the contents of the transactions but also verifies that they were signed by Apple. const transactions = await api.decodeTransactions(response.signedTransactions)

In the Git README it is documented as follows. // Decoding not only reveals the contents of the transactions but also verifies that they were signed by Apple. const transactions = await decodeTransactions(response.signedTransactions)

agisboye commented 2 years ago

The README has been updated on npm. 😊