Skip to content

Conversation

@GuiBibeau
Copy link
Collaborator

Summary

  • Adds comprehensive JSDoc documentation to all major exported APIs
  • Includes @example blocks for all public functions and types
  • Makes generated TypeDoc output LLM-ready and improves developer onboarding

Packages Updated

  • @solana/client - SOL, SPL, Stake, and wSOL feature helpers
  • @solana/react-hooks - useStake, useSplToken, useWrapSol hooks

Files Changed

  • packages/client/src/features/sol.ts - SOL transfer helper documentation
  • packages/client/src/features/spl.ts - SPL token helper documentation
  • packages/client/src/features/stake.ts - Staking helper documentation
  • packages/client/src/features/wsol.ts - wSOL wrap/unwrap helper documentation
  • packages/react-hooks/src/hooks.ts - React hooks documentation

Test Plan

  • Run pnpm --filter @solana/client docs - verified TypeDoc generates successfully
  • Check that all exported APIs have documentation with examples

Add detailed JSDoc comments with @example blocks to all major exported APIs:
- packages/client/src/features/sol.ts - SOL transfer helpers
- packages/client/src/features/spl.ts - SPL token helpers
- packages/client/src/features/stake.ts - Staking helpers
- packages/client/src/features/wsol.ts - wSOL wrap/unwrap helpers
- packages/react-hooks/src/hooks.ts - React hooks (useStake, useSplToken, useWrapSol)

This improves TypeDoc-generated documentation quality and makes
the API docs more useful for LLM consumption and developer onboarding.
@GuiBibeau GuiBibeau merged commit f1cde24 into main Jan 5, 2026
7 checks passed
@github-actions github-actions bot mentioned this pull request Jan 5, 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.

2 participants