From ddb3e3fc67e20dc2fd58bbdaf579482291a2a0f5 Mon Sep 17 00:00:00 2001 From: An-idd Date: Wed, 24 Jun 2026 10:45:31 +0800 Subject: [PATCH] fix(systematic-debugging): default waitFor's description so examples compile The waitFor snippet in condition-based-waiting.md declared `description` as a required parameter, but every usage example in the file (the Core Pattern and all five Quick Patterns rows) calls waitFor with a single argument. Copying the documented call form fails to type-check: error TS2554: Expected 2-3 arguments, but got 1. Give `description` a default ('condition') so the documented examples compile. The timeout error message is preserved. Co-Authored-By: Claude Opus 4.8 (1M context) --- skills/systematic-debugging/condition-based-waiting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skills/systematic-debugging/condition-based-waiting.md b/skills/systematic-debugging/condition-based-waiting.md index 70994f777c..8f08dfe346 100644 --- a/skills/systematic-debugging/condition-based-waiting.md +++ b/skills/systematic-debugging/condition-based-waiting.md @@ -61,7 +61,7 @@ Generic polling function: ```typescript async function waitFor( condition: () => T | undefined | null | false, - description: string, + description = 'condition', timeoutMs = 5000 ): Promise { const startTime = Date.now();