Skip to content

docs(power): concurrent-operations.md calls succeeded and failed as properties but they are methods#177

Open
TrickSumo wants to merge 1 commit intoaws:mainfrom
TrickSumo:patch-7
Open

docs(power): concurrent-operations.md calls succeeded and failed as properties but they are methods#177
TrickSumo wants to merge 1 commit intoaws:mainfrom
TrickSumo:patch-7

Conversation

@TrickSumo
Copy link
Copy Markdown
Contributor

Issue

The "Get Results" section in concurrent-operations.md accesses succeeded and failed as properties:

// As shown in docs — causes TypeScript error
const successful = results.succeeded.map(item => item.result);
const failed = results.failed.map(item => ({
  index: item.index,
  error: item.error
}));

This causes a TypeScript compile error:

Property 'map' does not exist on type '() => (BatchItem<number> & { result: number; })[]'

Root Cause

succeeded and failed are methods in the SDK, not properties:

image

Description of changes:

Add parentheses to call them as methods.

succeed and failed are methods, not properties
@TrickSumo TrickSumo changed the title docs(power): concurrent-operations.md calls succeeded and failed as properties — they are methods docs(power): concurrent-operations.md calls succeeded and failed as properties but they are methods May 9, 2026
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