Skip to content

Add JSDoc standard comments to all core utility functions and hooks#328

Merged
AlAfiz merged 1 commit into
BETAIL-BOYS:mainfrom
elizabetheonoja-art:feat/jsdoc-utility-functions-hooks
Jun 18, 2026
Merged

Add JSDoc standard comments to all core utility functions and hooks#328
AlAfiz merged 1 commit into
BETAIL-BOYS:mainfrom
elizabetheonoja-art:feat/jsdoc-utility-functions-hooks

Conversation

@elizabetheonoja-art

Copy link
Copy Markdown
Contributor

Summary

Adds comprehensive JSDoc documentation to every exported function in src/lib/utils/ and src/hooks/.

Changes

lib/ (12 files)

  • api.ts - Documented internal helpers and RequestOptions interface
  • breadcrumbs.ts - Added JSDoc to generateBreadcrumbs and getPageTitle
  • env.ts - Documented getWsBaseUrl
  • httpClient.ts - Added JSDoc to all exported functions and helpers
  • toast.ts - Documented all toast utility functions
  • networkConfig.ts - Documented all configuration accessors
  • walletCache.ts - Added parameter/return docs to all exported functions
  • stellar.ts - Documented getNetwork, isWalletConnected
  • apiHealth.ts - Full JSDoc for all exported functions and hooks
  • walletConnector.ts - Documented factory and display utility functions
  • riskSocket.ts - Added JSDoc to all public RiskSocketClient methods
  • freighterErrors.ts - Documented parseFreighterError and helpers

hooks/ (6 files)

  • useInvoice.ts, useRepayInvoice.ts, useMintInvoice.ts - Full JSDoc
  • useNetworkDetection.ts - Hook-level and function-level docs
  • useTxWithToast.ts - Enhanced existing documentation
  • useTransactionToast.tsx - Documented the hook

Closes #269

…ooks

Adds comprehensive JSDoc blocks to all exported functions in:
- src/lib/ (api.ts, breadcrumbs.ts, env.ts, httpClient.ts, toast.ts,
  networkConfig.ts, walletCache.ts, stellar.ts, apiHealth.ts,
  walletConnector.ts, riskSocket.ts, freighterErrors.ts)
- src/hooks/ (useInvoice.ts, useRepayInvoice.ts, useMintInvoice.ts,
  useNetworkDetection.ts, useTxWithToast.ts, useTransactionToast.tsx)

Each exported function now includes @param, @returns, and @throws documentation.

Closes BETAIL-BOYS#269

@AlAfiz AlAfiz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work

@AlAfiz AlAfiz merged commit d7790d6 into BETAIL-BOYS:main Jun 18, 2026
1 check passed
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.

Add JSDoc standard comments to all core utility functions and hooks

2 participants