You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, client methods like PaystackClient.transactions.getTransactions, return a PaystackResponse whose data may be a record or an array of records leaving consumers of this package to have to infer in implement types in their project. implement a Transaction type so that client methods like PaystackClient.transactions.getTransactions may return PaystackResponse<Transaction[]> and PaystackClient.transactions.getTransaction may return PaystackResponse<Transaction>.
Prerequisites
a paystack account (to obtain a secret key)
using the paystack-cli to obtain a dump of transactions to determine fields and their types. See project documentation for more
Currently, client methods like
PaystackClient.transactions.getTransactions
, return aPaystackResponse
whose data may be a record or an array of records leaving consumers of this package to have to infer in implement types in their project. implement aTransaction
type so that client methods likePaystackClient.transactions.getTransactions
may returnPaystackResponse<Transaction[]>
andPaystackClient.transactions.getTransaction
may returnPaystackResponse<Transaction>
.Prerequisites
paystack-cli
to obtain a dump of transactions to determine fields and their types. See project documentation for morePaystackResponse
to a generic type #34The text was updated successfully, but these errors were encountered: