From 4220ce3a6381d591ac72e348b028f7cb448f3207 Mon Sep 17 00:00:00 2001 From: Jan Paepke Date: Thu, 26 Sep 2024 16:53:57 +0200 Subject: [PATCH] fix async iterator example --- README.md | 2 +- src/createMollieClient.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7a669845..5a7d40c5 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ The `page` methods do not fit every use case. If you find yourself retrieving mu ```javascript // Iterate over all payments. -for await (let payment in mollieClient.payments.iterate()) { +for await (const payment of mollieClient.payments.iterate()) { // (Use break to end the loop prematurely.) } ``` diff --git a/src/createMollieClient.ts b/src/createMollieClient.ts index 3671bdd4..376f2786 100644 --- a/src/createMollieClient.ts +++ b/src/createMollieClient.ts @@ -188,7 +188,7 @@ export { createMollieClient }; export { ApiMode, Locale, PaymentMethod, HistoricPaymentMethod, SequenceType } from './data/global'; export { CaptureEmbed } from './data/payments/captures/data'; -export { type MandateDetails, type MandateDetailsCreditCard, type MandateDetailsDirectDebit, MandateMethod, MandateStatus } from './data/customers/mandates/data'; +export { MandateMethod, MandateStatus } from './data/customers/mandates/data'; export { MethodImageSize, MethodInclude } from './data/methods/data'; export { OrderEmbed, OrderStatus } from './data/orders/data'; export { OrderLineType } from './data/orders/orderlines/OrderLine';