nuxt / content

The file-based CMS for your Nuxt application, powered by Markdown and Vue components.
https://content.nuxt.com
MIT License
3.13k stars 627 forks source link

fix(types): add const type parameter for .only() and .without() #2573

Closed thunfisch987 closed 8 months ago

thunfisch987 commented 8 months ago

🔗 Linked issue

2546

❓ Type of change

📚 Description

This PR enables having better types when using the .only() function and uses the const type parameter feature that was introduced in Typescript 5.0

I noticed that my previous PR only included the .only() in runtime/types/query.ts when it should have also included the ones in runtime/types/index.ts

📝 Checklist