diff --git a/libs/types.ts b/libs/types.ts index 8ea3b3f..502fba7 100644 --- a/libs/types.ts +++ b/libs/types.ts @@ -21,10 +21,7 @@ interface PaystackCustomFields { } interface PaystackMetadata { - custom_fields: PaystackCustomFields[]; -} - -interface PaystackMetadata { + custom_fields?: PaystackCustomFields[]; [key: string]: any; } @@ -66,4 +63,4 @@ export type InitializePayment = (options: { }) => void; export type HookConfig = Omit, 'publicKey'> & - Pick; + Pick; \ No newline at end of file