TwoSlash 統合
TwoSlash は、TypeScript のコードブロックに型情報をホバーやインラインで表示できる強力なツールです。JavaScript/TypeScript 関連のトピックのスライド作成に非常に便利です。
TwoSlash を使用するには、コードブロックの言語識別子に twoslash を追加します:
md
```ts twoslash
import { ref } from 'vue'
const count = ref(0)
// ^?
```これは、次のようにレンダリングされます:
ts
import { ref } from 'vue'
const count = ref(0)