deno doc
- Ability to warn about missing explicit types in a library's public API
#19356
Labels
suggestion
suggestions for new features (yet to be agreed)
It would be nice if there were a command like
deno doc --check mod.ts
that would point out everything in the public API used within a library that's missing explicit types.deno doc
works off explicit types, so when they're missing the documentation will be lacking.For example, I ran a custom tool on Dax's repo and it helped me catch all these cases where explicit types were missing: https://github.com/dsherret/dax/pull/147/files
That said, perhaps this should be a linting error, but the issue is it would need to know the public entrypoint or entrypoints. You wouldn't want to bother having explicit types for everything.
The text was updated successfully, but these errors were encountered: