| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Fixes tinyhttp#492 - The serialize function and SerializeOptions type are part of the public API but lacked JSDoc comments. This degrades IDE DX since users don't get inline help for cookie fields like sameSite, secure, etc. Added comprehensive JSDoc documentation for: - SerializeOptions type with descriptions for each field - serialize() function with parameter and return type docs
| Back | FazBrowse Home | New Git URL |
Summary
Fixes #492
The serialize function and SerializeOptions type are part of the public API but lacked JSDoc comments. This PR adds comprehensive inline documentation to improve the IDE developer experience.
Changes
Before vs After
Before: SerializeOptions fields showed no hover info in IDE. serialize() had no documentation.
After: All fields are documented with descriptions and RFC links. Users get inline help for every option.
Testing
No logic changes — this is documentation-only. Existing tests pass without modification.