TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Tsdocs.dev: Type docs for any JavaScript library

224 pointsby webartisanover 1 year ago

16 comments

pastelskyover 1 year ago
Author here:<p>I created this because I found myself peeping inside type declaration files too often, and the only way to do that was by installing the package first.<p>tsdocs.dev helps you check the API surface of a good number of JS libraries and their past versions — usually a quick search away.<p>There&#x27;s something powerful about speed and being able to answer questions in seconds that usually take minutes.<p>edit: The server might be overloaded with requests as we prime up our caches, but do visit back after HN&#x27;s done hugging us to death.<p>You can show your support and help cover a part of server costs if this (or bundlephobia.com) saved you time.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;sponsors&#x2F;pastelsky">https:&#x2F;&#x2F;github.com&#x2F;sponsors&#x2F;pastelsky</a>
评论 #38700859 未加载
评论 #38700535 未加载
评论 #38703637 未加载
评论 #38701848 未加载
评论 #38703227 未加载
评论 #38702848 未加载
评论 #38705049 未加载
评论 #38699870 未加载
评论 #38700802 未加载
conandoleover 1 year ago
A good example of a well documented library is three.js<p><a href="https:&#x2F;&#x2F;tsdocs.dev&#x2F;docs&#x2F;three&#x2F;0.159.0&#x2F;classes&#x2F;Bone.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;tsdocs.dev&#x2F;docs&#x2F;three&#x2F;0.159.0&#x2F;classes&#x2F;Bone.html</a><p>It’s fun to just read through all of the different entities in the 3D ecosystem, even though I’ve only used it only a couple of times.
评论 #38701240 未加载
评论 #38698630 未加载
jstasiakover 1 year ago
Looks like a great initiative – I wish there was a reliable TS&#x2F;JS equivalent of <a href="https:&#x2F;&#x2F;docs.rs" rel="nofollow noreferrer">https:&#x2F;&#x2F;docs.rs</a> (even considering rustdoc&#x27;s deficiencies[1]).<p>I went through this exercise recently and so far my experience with trying to produce documentation from a somewhat convoluted TS codebase[2] has been disappointing. I would claim it&#x27;s a consequence of the library&#x27;s public (user-facing) API substantially differing from how the actual implementation is structured.<p>Typedoc produces bad results for that codebase so sphinx-js, which I wanted to use, doesn&#x27;t have much to work with. I ultimately documented things by hand, for now, the way the API is meant to be used by the user.<p>Compare:<p><a href="https:&#x2F;&#x2F;ts-results-es.readthedocs.io&#x2F;en&#x2F;latest&#x2F;reference&#x2F;api&#x2F;index.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;ts-results-es.readthedocs.io&#x2F;en&#x2F;latest&#x2F;reference&#x2F;api...</a><p>vs<p><a href="https:&#x2F;&#x2F;tsdocs.dev&#x2F;docs&#x2F;ts-results-es&#x2F;4.1.0-alpha.1&#x2F;index.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;tsdocs.dev&#x2F;docs&#x2F;ts-results-es&#x2F;4.1.0-alpha.1&#x2F;index.ht...</a><p><a href="https:&#x2F;&#x2F;www.jsdocs.io&#x2F;package&#x2F;ts-results-es#package-index" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.jsdocs.io&#x2F;package&#x2F;ts-results-es#package-index</a><p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;rust&#x2F;issues&#x2F;66249">https:&#x2F;&#x2F;github.com&#x2F;rust-lang&#x2F;rust&#x2F;issues&#x2F;66249</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;lune-climate&#x2F;ts-results-es">https:&#x2F;&#x2F;github.com&#x2F;lune-climate&#x2F;ts-results-es</a>
whoisthemachineover 1 year ago
This is a better looking version of what Java and C# have had for a long time (kudos to the author for that!), is that the inspiration for this tool?<p><a href="https:&#x2F;&#x2F;docs.oracle.com&#x2F;javase&#x2F;8&#x2F;docs&#x2F;technotes&#x2F;tools&#x2F;windows&#x2F;javadoc.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;docs.oracle.com&#x2F;javase&#x2F;8&#x2F;docs&#x2F;technotes&#x2F;tools&#x2F;window...</a><p><a href="https:&#x2F;&#x2F;dotnet.github.io&#x2F;docfx&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;dotnet.github.io&#x2F;docfx&#x2F;</a><p>I saw the author mentioned in another comment that they found themselves peeping inside type declaration files &quot;too often&quot;. While I do often use sites generated by the above tools to discover new API&#x27;s that suit my needs, diving into the actual code using a good decompiler is still my first move, as it is often cheaper than seeking out the documentation online, and it will show me the actual implementation as well. So in my opinion there is no shame in looking inside the declaration files!
评论 #38835105 未加载
Rapzidover 1 year ago
Awesome. What do you think about this long standing Typescript issue? <a href="https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;57683303&#x2F;how-can-i-see-the-full-expanded-contract-of-a-typescript-type" rel="nofollow noreferrer">https:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;57683303&#x2F;how-can-i-see-t...</a><p>It&#x27;s been my experience introducing and pushing Typescript at multiple companies that people get lost, frustrated, and then push back because they can&#x27;t untangle and make sense of type hierarchies in order to satisfy the compiler...<p>Even I get <i>tired</i> of control clicking up and down hierarchies trying to build a mental model of exactly what&#x27;s expected.<p>It&#x27;s amazing to me that this issue has been ignored so long by the TypeScript team.
评论 #38706282 未加载
WorldMakerover 1 year ago
Some quick bits of feedback after a small bit of skimming (between bad gateway errors, sorry for contributing to all the over-traffic):<p>- It would be great to see some of the fields from package.json shown as an overview above&#x2F;next to the README of packages. The homepage and repository fields in particular are often quite useful to have quick access to. You could pull up npmjs.com directly next to this site, but it might be nice to have it all in one place.<p>- In cases where there is an auto-redirect from package-name to @types&#x2F;package-name it might be nice to still show the README (and package.json metadata if added) of the original package-name.<p>- Typedoc upstream includes a dark theme and does the prefers-color-scheme auto-setup. This might be nice to have here, too.
评论 #38700116 未加载
simonsarrisover 1 year ago
Wow it works quite well:<p><a href="https:&#x2F;&#x2F;tsdocs.dev&#x2F;docs&#x2F;gojs&#x2F;2.3.12&#x2F;classes&#x2F;Diagram.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;tsdocs.dev&#x2F;docs&#x2F;gojs&#x2F;2.3.12&#x2F;classes&#x2F;Diagram.html</a><p>vs the real docs<p><a href="https:&#x2F;&#x2F;gojs.net&#x2F;latest&#x2F;api&#x2F;symbols&#x2F;Diagram.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;gojs.net&#x2F;latest&#x2F;api&#x2F;symbols&#x2F;Diagram.html</a><p>Somewhat a problem: The constructor for the class is halfway down the page, and there&#x27;s no scrollbar!
montyandersonover 1 year ago
It might have just received the hug of death. Otherwise, this is fantastic; I&#x27;ve been looking for something like this.
评论 #38700412 未加载
jjiceover 1 year ago
This is great, bookmarked. I hope we can see this in search results in the future.<p>I started a new job in TypeScript back at the beginning of the year and the lack of standardized library documentation viewing is a surprising gap in the TS ecosystem. This is great, thank you!
stevageover 1 year ago
This looks great.<p>It&#x27;s a little bit confusing comparing these docs vs &quot;official ones&quot;.<p>Consider:<p><a href="https:&#x2F;&#x2F;tsdocs.dev&#x2F;docs&#x2F;tonal&#x2F;5.1.2&#x2F;interfaces&#x2F;_internal_.Chord.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;tsdocs.dev&#x2F;docs&#x2F;tonal&#x2F;5.1.2&#x2F;interfaces&#x2F;_internal_.Ch...</a><p><a href="https:&#x2F;&#x2F;tonaljs.github.io&#x2F;tonal&#x2F;module-Chord.html" rel="nofollow noreferrer">https:&#x2F;&#x2F;tonaljs.github.io&#x2F;tonal&#x2F;module-Chord.html</a><p>There seem to be things missing from each.
Kab1rover 1 year ago
&gt; TypeDefinitionResolveError &gt; Failed to resolve types for this package. This package likely does not ship with types, and it does not have a corresponding package `@types` package from which reference documentation for its APIs can be built.<p>I was hoping it would work with libraries that don&#x27;t ship with types.
turboturboover 1 year ago
For `@remix-run&#x2F;react`, I get the following error:<p>UNEXPECTED_DOCS_POLL_FAILURE 500 {&quot;statusCode&quot;:500,&quot;error&quot;:&quot;Internal Server Error&quot;,&quot;message&quot;:&quot;Cannot read properties of undefined (reading &#x27;changePriority&#x27;)&quot;}
coderagover 1 year ago
For me, its stuck at Installing package and extracting docs... with a nice toaster GIF
waldofindover 1 year ago
Looks like rust inspired (docs.rs) but for the typescript ecosystem. Neat!
评论 #38702203 未加载
esamattiover 1 year ago
This is awesome! Thanks for sharing.
ttyyzzover 1 year ago
Bad gateway &#x2F; Error code 502