content icon indicating copy to clipboard operation
content copied to clipboard

Update 5.typescript.md - changed types path

Open RollingTL opened this issue 1 year ago • 0 comments

When importing types like that: import type { QueryBuilderParams } from '@nuxt/content/dist/runtime/types'

  • typescript gives an error: Cannot find module '@nuxt/content/dist/runtime/types' or its corresponding type declarations Making path: @nuxt/content fixes this error.

🔗 Linked issue

❓ Type of change

  • [x] 📖 Documentation (updates to the documentation or readme)
  • [ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
  • [ ] 👌 Enhancement (improving an existing functionality like performance)
  • [ ] ✨ New feature (a non-breaking change that adds functionality)
  • [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

📝 Checklist

  • [x] I have linked an issue or discussion.
  • [x] I have updated the documentation accordingly.

RollingTL avatar Jul 27 '24 09:07 RollingTL