react-paystack icon indicating copy to clipboard operation
react-paystack copied to clipboard

Fix: Use callback declaration from types

Open epikoder opened this issue 2 years ago • 2 comments

PaystackConsumer and PaystackContext are using () =>void for onSuccess instead of callback from types

epikoder avatar May 13 '23 21:05 epikoder

I was even thinking, for better typesafety, The type should be (reference: string) => void. What do you think?

Nelwhix avatar Jul 08 '23 05:07 Nelwhix