From f163c89143d59e6feb2cc68cec07525fc61c647c Mon Sep 17 00:00:00 2001 From: Iss <74388823+isshaddad@users.noreply.github.com> Date: Thu, 25 Jun 2026 09:50:59 -0400 Subject: [PATCH] docs: fix wait.for() idempotency example to use a single options object (#4038) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The wait.for() idempotency example passed the idempotency options as a second argument, but wait.for() takes a single options object — so the second object was silently ignored and the key never applied. Merged the fields into the single options object, matching the wait.until() example. Supersedes #4021. --- 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 ab212f573..0a29cbf2c 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