Volar TypeScript Twoslash Queries Service

0.0.70 · active · verified Sun Apr 19

This package integrates TypeScript Twoslash query capabilities directly into Volar-powered language services, enhancing developer tooling within Vue and other Volar-supported environments. It allows for inline type information and error checking queries within code comments, similar to how TypeScript's own playground functions. As of version 0.0.70, it is still in a pre-1.0 stage, indicating potential API changes but is actively maintained as part of the Volar ecosystem. Its release cadence is typically tied to Volar's own development cycle, meaning updates often coincide with new Volar releases or when new Twoslash features need integration. Key differentiators include its seamless integration into Volar's Language Server Protocol, providing rich type feedback without needing external tools or complex build steps for ad-hoc type queries directly within your editor.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates how to integrate the Twoslash queries service into a Volar configuration file.

module.exports = {
	services: [
		require('volar-service-typescript-twoslash-queries').create(),
	],
};

view raw JSON →