Skip to content

Update 5.typescript.md - changed types path#2735

Merged
farnabaz merged 1 commit intonuxt:mainfrom
RollingTL:patch-1
Sep 11, 2024
Merged

Update 5.typescript.md - changed types path#2735
farnabaz merged 1 commit intonuxt:mainfrom
RollingTL:patch-1

Conversation

@RollingTL
Copy link
Copy Markdown
Contributor

@RollingTL RollingTL commented Jul 27, 2024

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

  • 📖 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

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

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 fiche this error.
@farnabaz farnabaz merged commit f65657f into nuxt:main Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants