react-paystack
react-paystack copied to clipboard
Fix: Use callback declaration from types
PaystackConsumer and PaystackContext are using () =>void for onSuccess instead of callback from types
I was even thinking, for better typesafety, The type should be (reference: string) => void. What do you think?