Skip to content

feat: Add JSDoc & generate TypeScript types - #21

Open
FotoVerite wants to merge 4 commits into
gulpjs:mainfrom
FotoVerite:main
Open

FotoVerite wants to merge 4 commits into
gulpjs:mainfrom
FotoVerite:main

Conversation

@FotoVerite

Copy link
Copy Markdown
Contributor

closes #17

@FotoVerite
FotoVerite requested a review from phated December 1, 2026 20:35
@FotoVerite FotoVerite self-assigned this Dec 1, 2026
@FotoVerite

Copy link
Copy Markdown
Contributor Author

We need to workshop my documentation I'm not completely happy with. Do you also think we should explicitly export path so that the jsdoc can use path and not npath and fpath.

@phated

phated commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Do you also think we should explicitly export path so that the jsdoc can use path and not npath and fpath.

If you think it'll make things better, you can import the path functions directly like import { join, basename } from "node:path"

@phated phated left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Few tips

Comment thread index.js Resolved
Comment thread node.d.ts Resolved
Comment thread package.json Resolved
Comment thread index.js Resolved
Comment thread index.js Resolved
Comment thread index.js Resolved
@phated phated added this to v6 Dec 1, 2026
@github-project-automation github-project-automation Bot moved this to Todo in v6 Dec 1, 2026
@phated phated moved this from Todo to In Progress in v6 Dec 1, 2026
Comment thread index.js

var nFileName = path.basename(npath, path.extname(npath)) + ext;
var nFilepath = path.join(path.dirname(npath), nFileName);
var fileName = basename(path, extname(path)) + ext;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

should we change this to filename not fileName? or should it be filePath.

@FotoVerite
FotoVerite requested a review from phated December 2, 2026 00:48
@FotoVerite

Copy link
Copy Markdown
Contributor Author

I do think explicit importing has improved readability without sacrificing anything.

Do you also think we should explicitly export path so that the jsdoc can use path and not npath and fpath.

If you think it'll make things better, you can import the path functions directly like import { join, basename } from "node:path"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

Add JSDoc & generate TS types

2 participants