Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concrete type for Transaction #35

Open
gray-adeyi opened this issue Oct 25, 2024 · 0 comments
Open

Concrete type for Transaction #35

gray-adeyi opened this issue Oct 25, 2024 · 0 comments

Comments

@gray-adeyi
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant