Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

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
@clarkdo clarkdo merged commit ecbc960 into nuxt:master Jan 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants