Skip to content

docs(power): use class references instead of strings in retryableErrorTypes examples#172

Open
TrickSumo wants to merge 2 commits intoaws:mainfrom
TrickSumo:patch-2
Open

docs(power): use class references instead of strings in retryableErrorTypes examples#172
TrickSumo wants to merge 2 commits intoaws:mainfrom
TrickSumo:patch-2

Conversation

@TrickSumo
Copy link
Copy Markdown
Contributor

Issue

The retryableErrorTypes examples in error-handling.md and step-operations.md pass string literals instead of class references:

retryableErrorTypes: ['NetworkError', 'TimeoutError'] // ❌ broken

The SDK type signature is retryableErrorTypes?: (new () => Error)[] which requires class constructors, not strings. Passing strings causes a TypeScript compile error:

  Type 'string' is not assignable to type 'new () => Error'

Description of changes:

Replace string literals with class references

retryableErrorTypes: [NetworkError, TimeoutError] // ✅ correct

TrickSumo added 2 commits May 9, 2026 16:29
fix: use class references instead of strings in retryableErrorTypes examples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant