Closed dayongkr closed 1 week ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
es-toolkit | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 2, 2024 2:31am |
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 99.70%. Comparing base (
3a6cb36
) to head (01b7a85
).
Description
We define types using TypeScript, so it doesn't seem necessary to specify types with JSDoc as well. Specifying both can lead to mistakes where different types are inadvertently documented, and it's quite cumbersome to update the JSDoc every time the TypeScript types are changed.
Moreover, even if we extract JSDoc to automate documentation, it’s pointless because JSDoc doesn’t fully support all of TypeScript’s types.
Additionally, even if we specify types in JSDoc, tools like VS Code only display type information based on TypeScript, just as described above.