-
-
Notifications
You must be signed in to change notification settings - Fork 505
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add @category JSDoc tag to improve reference docs generation #203
Comments
Sorry for offtopic, @schickling, do you know how I can get my packages listed on paka.dev? https://paka.dev doesn't show much and I can't even google-find anything about this Paka (which looks like a fantastic tool that I'd use!) |
@schickling I noticed that Paka doesn't show the https://github.com/sindresorhus/type-fest/blob/main/ts41/camel-case.d.ts#L64 Either because it has a space in the name or because the type is conditional: Lines 44 to 50 in 9f4817e
Paka should show all types and assume the latest TypeScript version. |
Paka is not yet officially launched but currently in the process of increasing its feature and package coverage. If you're interested in using Paka I'd be excited to chat more. Maybe you want to send me a DM on Twitter? |
That's a great point @sindresorhus. Seems like Paka doesn't yet support |
@schickling Are you still working on Paka? If so, would you be able to add https://github.com/sindresorhus/ts-extras ? |
Yes, still working on it and steadily making progress. Just a pretty complex problem in general :) Re the package you've asked about. Did you already check this link? https://paka.dev/npm/ts-extras/v/0.1.0 Note: Unfortunately in some cases types imported/exported from other dependent packages results in the type being displayed as |
Ah, nice. I thought packages has to be whitelisted.
That is a big downside for my use-case as I plan to import a lot of types from an external package. Good to hear you're working on it though. |
TS 4.5 has some improvements coming that will make distinguishing different kinds of Hope that makes sense. One thing I should add those is both @schickling and I recognize how killer of a feature cross-package type reference tracking is. :) |
Thanks for elaborating. Too bad you cannot just reuse what VS Code uses to power its type hints. |
In VSC the same thing happens unless you have run npm install. We don't do that in Paka during extraction on the basis that doing so is too heavy in a request context. |
When generating reference docs (e.g. via Paka 馃) it can be very helpful to mark exports with the
@category
JSDoc tag which enables grouping them in a semantically more meaningful way.Here are a few example packages which already added the
@example
JSDoc tag:Upvote & Fund
The text was updated successfully, but these errors were encountered: