From fb3844befbc7bee53e6ccaa0c4ecb6768f14272b Mon Sep 17 00:00:00 2001 From: crubn Date: Mon, 22 Jun 2026 23:18:41 +0500 Subject: [PATCH] docs: fix wait.for() idempotency example to use a single options object MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit wait.for() takes a single WaitForOptions object (WaitPeriod & CommonWaitOptions), so idempotencyKey/idempotencyKeyTTL must go in the same object as the duration. The example passed them as a second argument, which is silently ignored — the idempotency key never applies. This matches the wait.until() example and the section's own prose. No behavior change. --- docs/wait-for.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/wait-for.mdx b/docs/wait-for.mdx index ab212f573e0..0a29cbf2c16 100644 --- a/docs/wait-for.mdx +++ b/docs/wait-for.mdx @@ -38,5 +38,5 @@ You can pass an idempotency key to any wait function, allowing you to skip waits ```ts // Specify the idempotency key and TTL when waiting for a duration: -await wait.for({ seconds: 10 }, { idempotencyKey: "my-idempotency-key", idempotencyKeyTTL: "1h" }); +await wait.for({ seconds: 10, idempotencyKey: "my-idempotency-key", idempotencyKeyTTL: "1h" }); ``` \ No newline at end of file