Skip to content

Add JSDoc/typedoc comments to escrow/create.ts, cancel.ts, release.ts and dispute.ts #133

Description

@meshackyaro

Description

typedoc-driven documentation generation (per the repo's existing Typedoc setup, issue #7) depends on JSDoc comments on exported symbols. src/client.ts and src/escrow/multisig.ts both have thorough /** ... */ blocks with @param, @returns, @throws, and @example tags on every public method. By contrast, src/escrow/create.ts's createEscrow, src/escrow/cancel.ts's cancelEscrow/getEscrow, src/escrow/release.ts's releaseEscrow, and src/escrow/dispute.ts's DisputeClient class and its raiseDispute/getDispute methods have no JSDoc at all — just inline // comments describing intended future behavior. Any generated Typedoc site would show rich documentation for some of the SDK's most central operations (multisig) and essentially blank pages for others (plain create/release/cancel/dispute), with no consistent standard applied.

Component

SDK

Difficulty

🟢 Easy

Tasks

  • Add /** ... */ doc comments with @param/@returns/@throws to every exported function/class in the four files above, matching the style already used in client.ts/multisig.ts
  • Add at least one @example block per function, matching the style in client.ts
  • Regenerate the Typedoc output locally to confirm the new comments render as expected

Acceptance Criteria

  • Every exported function/class in escrow/create.ts, cancel.ts, release.ts, and dispute.ts has JSDoc matching the depth/style already established in client.ts and multisig.ts

Estimated Time

1-2 days

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programdifficulty: easyEasy difficulty issuedocumentationImprovements or additions to documentationpriority: lowLow priority issuesdk

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions