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

Create contrete type for TransferRecipient #41

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

Create contrete type for TransferRecipient #41

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

Comments

@gray-adeyi
Copy link
Owner

Currently, client methods like PaystackClient.transferRecipients.getTransferRecipients, 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 TransferRecipient type so that client methods like PaystackClient.transferRecipients.getTransferRecipients may return PaystackResponse<TransferRecipient[]> and PaystackClient.transferRecipients.getTransferRecipient may return PaystackResponse<TransferRecipient>.

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