You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here neither RawResult nor ArrayOutput are linked or documented. These two type definitions are not exported by src/index.ts so it is understandable that they are not linked. But, to make things useful the reader of the API docs would want to see what these types are even if they cannot be imported directly.
The text was updated successfully, but these errors were encountered:
Being forced to export the types just so that JSR can document them leads to bad DX, as all those types would show up in auto complete when importing the package.
If the decision is to keep not showing docs for these non-exported types, then JSR should probably error when trying to publish a package that refers to an internal type as part of the public interface. In this case, it's still be great to have an opt-in /* @jsr-pretend-that-this-is-exported */ comment.
@nicolo-ribaudo we will definitely still do this; I just need to sit down and finish the PR linked to this issue. Not sure when I will get the chance to do that though
I was browsing the
@badrap/valita
symbols and the generated API docs and I see a lot of symbols are not linked/documented.For example:
https://jsr.io/@badrap/valita/doc/~/ArrayType#method_func_0
Here neither
RawResult
norArrayOutput
are linked or documented. These two type definitions are not exported bysrc/index.ts
so it is understandable that they are not linked. But, to make things useful the reader of the API docs would want to see what these types are even if they cannot be imported directly.The text was updated successfully, but these errors were encountered: