-
Notifications
You must be signed in to change notification settings - Fork 7
docs: standardize TSDoc comments across result parsers and core interfaces #97
Conversation
|
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #97 +/- ##
=======================================
Coverage 98.49% 98.49%
=======================================
Files 13 13
Lines 532 532
Branches 110 110
=======================================
Hits 524 524
Misses 8 8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR standardizes TSDoc comments across result parsers and core interfaces to improve developer experience and maintain consistent documentation patterns throughout the codebase.
- Enhanced JSDoc documentation with proper parameter descriptions, practical examples, and return type specifications
- Standardized internal utility function documentation with
@internaltags and improved descriptions - Improved core interface documentation with detailed configuration explanations and usage examples
Reviewed Changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/google-sr/src/utils.ts | Updated utility function documentation with proper TSDoc format and @internal tags |
| packages/google-sr/src/search.ts | Added comprehensive documentation for main search functions with examples |
| packages/google-sr/src/results/*.ts | Standardized result parser documentation across all 8 parsers with consistent format and examples |
| packages/google-sr/src/index.ts | Added utility type exports with clarifying comment |
| packages/google-sr/src/constants.ts | Enhanced SearchOptions interface documentation with detailed parameter explanations |
Comments suppressed due to low confidence (1)
packages/google-sr/src/results/organic.ts:42
- The parameter name 'noPartialResult' should be 'noPartialResults' to match the actual parameter name.
* - If noPartialResults is false: Array of {@link PartialExceptType}<{@link OrganicResultNode}> objects
This PR standardizes the TSDoc documentation across all result parsers and core internal interfaces to improve developer and contributor experience.
Changes
SearchOptionsandSearchOptionsWithPageswith detailed examples and better explanations of configuration optionsAll changes are documentation-only with no functional modifications to the codebase.