nuxt-modules / nuxt-modules/prismic
Auto-Import the generated Document types in 'prismicio-types.d.ts'
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- TypeScript
- Stars
- 249
- Forks
- 44
- Avg merge
- 16m
- Merged PRs (30d)
- 1
Description
Maybe i am missing something but how can these types be auto imported in nuxt?
This feels wrong....
imports: {
presets: [
{
from: '~~/prismicio-types',
imports: [
{ name: 'ArticleDocument', type: true },
{ name: 'AuthorDocument', type: true },
{ name: 'CategoryDocument', type: true }
]
}
]
},
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the Nuxt imports configuration shown in the issue and the generated prismicio-types.d.ts file. Determine how the generated ArticleDocument, AuthorDocument, and CategoryDocument types could be made available without the manual imports; done means those types can be used automatically in Nuxt.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nuxt, typescript
- Domain
- developer-experience
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100