nuxt-content-twoslash
TypeScript icon, indicating that this package has built-in type declarations

0.0.10 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i nuxt-content-twoslash

Weekly Downloads

671

Version

0.0.10

License

MIT

Unpacked Size

20.6 kB

Total Files

21

Last publish

Collaborators

  • antfu