Skip to content

fix: clean up JSDocs causing errors during generate-docs.mts script#1559

Draft
T3sT3ro wants to merge 1 commit intotoss:mainfrom
T3sT3ro:fix-jsdoc-for-generate-docs-script
Draft

fix: clean up JSDocs causing errors during generate-docs.mts script#1559
T3sT3ro wants to merge 1 commit intotoss:mainfrom
T3sT3ro:fix-jsdoc-for-generate-docs-script

Conversation

@T3sT3ro
Copy link
Contributor

@T3sT3ro T3sT3ro commented Dec 16, 2025

Running generate-docs.mts script reported errors due to missing JSDoc for many function overloads. This PR cleans up those cases, adding comments when they are missing or removing duplicate/redundant function declarations.

I have however some suspicions that generate-docs.mts script has not been maintained for some town now, and may be redundant already. I tried running it by itself and starting docs:build/dev tasks, but have seen no changes to the files.

It is probably related to #1558 which I wanted to develop in the first place, but this is for the time being as far as I got. More help regarding workflow for documentation generations in this project is required.


It turns out that it is not so easy with partition and reduceAsync, because both of those files provide separate declaration and definition of functions. After I tried removing declarations which duplicate definitions, the typecheck task fails. After I add them back, the generate-docs.mts fails. I am not sure how to proceed from there.

@vercel
Copy link

vercel bot commented Dec 16, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
es-toolkit Ready Ready Preview, Comment Dec 16, 2025 11:17pm

Running generate-docs.mts script reported errors due to missing JSDoc
for many function overloads. This commit cleans up those cases, adding
comments when they are missing or removing duplicate/redundant function
declarations.
@T3sT3ro T3sT3ro marked this pull request as draft December 16, 2025 23:06
@T3sT3ro T3sT3ro force-pushed the fix-jsdoc-for-generate-docs-script branch from c957956 to 6ef0cbf Compare December 16, 2025 23:07
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.

1 participant