enkot / nuxt-content-twoslash

TwoSlash integrations for Nuxt Content

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nuxt-content-twoslash

TwoSlash integrations for Nuxt Content.

Important

Experimental.

npm install nuxt-content-twoslash
// nuxt.config.js
export default defineNuxtConfig({
  modules: [
    'nuxt-content-twoslash', // this needs to be before `@nuxt/content`
    '@nuxt/content'
  ],
  content: {
    // ...
  },
  twoslash: {
    // ...
  }
})

CLI Usage

This module also provides a command-line interface to verify TwoSlash code snippets in your markdown files, where you can guard the type safety in continuous integration.

npx nuxt-content-twoslash verify

About

TwoSlash integrations for Nuxt Content

License:MIT License


Languages

Language:TypeScript 98.6%Language:JavaScript 0.9%Language:Vue 0.6%