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 PaymentPage #39

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

Concrete type for PaymentPage #39

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

Comments

@gray-adeyi
Copy link
Owner

Currently, client methods like PaystackClient.paymentPages.getPages, 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 PaymentPage type so that client methods like PaystackClient.paymentPages.getPages may return PaystackResponse<PaymentPage[]> and PaystackClient.paymentPages.getPage may return PaystackResponse<PaymentPage>.

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