From 5c928d53910b9976b1d1f507c8b39cb1a630bce4 Mon Sep 17 00:00:00 2001 From: epikoder <efedua.bell@gmail.com> Date: Sat, 13 May 2023 22:10:12 +0100 Subject: [PATCH] Fix: Use callback declaration from types --- dist/paystack-consumer.d.ts | 4 ++-- dist/paystack-context.d.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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<string, any>) => any; - onSuccess?: () => void; + onSuccess?: callback; onClose?: () => void; } declare const PaystackConsumer: React.ForwardRefExoticComponent<PaystacConsumerProps & React.RefAttributes<unknown>>; 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<IPaystackContext>;