diff --git a/dist/paystack-consumer.d.ts b/dist/paystack-consumer.d.ts index e80f377..d32f5fd 100644 --- a/dist/paystack-consumer.d.ts +++ b/dist/paystack-consumer.d.ts @@ -1,8 +1,8 @@ import React from 'react'; -import { PaystackProps } from './types'; +import { PaystackProps, callback } from './types'; interface PaystacConsumerProps extends PaystackProps { children: (arg: Record) => any; - onSuccess?: () => void; + onSuccess?: callback; onClose?: () => void; } declare const PaystackConsumer: React.ForwardRefExoticComponent>; diff --git a/dist/paystack-context.d.ts b/dist/paystack-context.d.ts index 7e92095..94dc2ed 100644 --- a/dist/paystack-context.d.ts +++ b/dist/paystack-context.d.ts @@ -2,7 +2,7 @@ import { callback } from './types'; type IPaystackContext = { initializePayment: (arg0: callback, arg1: callback) => void; - onSuccess: () => void; + onSuccess: callback; onClose: () => void; }; declare const PaystackContext: import("react").Context;