Skip to content

[DOCUMENTATION] Add inline JSDoc comments to all lib/ utility functions #375

@dev-fatima-24

Description

@dev-fatima-24

Priority: medium

Description

The frontend lib/ directory (stellar.ts, soroban.ts, freighter.ts, carbon-utils.ts) contains complex utility functions with no documentation. Every exported function must have a JSDoc comment explaining its purpose, parameters, return value, and any side effects. This is required for IDE autocomplete and onboarding.

Acceptance Criteria

  • Every exported function in lib/ has a JSDoc comment
  • JSDoc includes: @description, @param (with types), @returns, and @throws where applicable
  • Complex functions include a @example block
  • Comments are accurate and match the actual function behavior
  • TypeScript types are not duplicated in JSDoc where they are already in the signature

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions