[ ] 📖 Documentation (updates to the documentation or readme)
[ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
[x] 👌 Enhancement (improving an existing functionality like performance)
[ ] ✨ New feature (a non-breaking change that adds functionality)
[ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to 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
🔗 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