nuxt / content

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

fix(types): use const type parameter for QueryBuilder.only #2546

Closed thunfisch987 closed 7 months ago

thunfisch987 commented 7 months ago

🔗 Linked issue

2545

❓ Type of change

📚 Description

Resolves #2545 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

📝 Checklist

thunfisch987 commented 7 months ago

I noticed this could probably also be done for .without(), but i didn't try it yet