TwoSlash Integration â
TwoSlash is a powerful tool for rendering TypeScript code blocks with type information on hover or inlined. It's quite useful for preparing slides for JavaScript/TypeScript-related topics.
To use it, you can add twoslash
to the code block's language identifier:
md
```ts twoslash
import { ref } from 'vue'
const count = ref(0)
// ^?
```
It will be rendered as:
ts
import { ref } from 'vue'
const count = ref(0)