Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add nuxt content support for typescript #688

Merged
merged 4 commits into from
Jan 16, 2021

Conversation

joukokar
Copy link
Contributor

When creating a project with typescript and nuxt content, the types are missing so using this.$content(...) throws type errors.

This fixes it by adding @nuxt/content types to tsconfig.json as described here https://content.nuxtjs.org/installation/#typescript

@atinux atinux requested a review from clarkdo January 12, 2021 14:06
Co-authored-by: Daniel Roe <daniel@roe.dev>
@clarkdo clarkdo merged commit ecbc960 into nuxt:master Jan 16, 2021
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.

4 participants