Twoslash for Vue SFCs
JSON →Twoslash-vue is an extension for the Twoslash library, specifically designed to bring its powerful TypeScript language server features to Vue Single File Components (SFCs). It enables rich code insights such as type on hover, compilation errors, and code completions directly within Vue `<script setup>` and `<script>` blocks, as well as the template context when supported by underlying Vue language tools. The current stable version is 0.3.8, and the package maintains a relatively active release cadence, frequently updating to support the latest TypeScript versions (currently ^5.5.0 || ^6.0.0) and integrating with advancements in the `@vue/language-core` library. Its key differentiator is its specialized focus on the complexities of Vue SFCs, providing a robust solution for developers looking to document and explain Vue code with accurate type inference and diagnostics, leveraging the established Twoslash ecosystem rather than being a standalone tool for Vue.
Traffic · last 30 days ↓14% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France