0no-co / gql.tada

🪄 Magical GraphQL query engine for TypeScript
https://gql-tada.0no.co
MIT License
2.52k stars 41 forks source link

readFragment leaks "any" when used without generic & explicit fragment. #215

Closed ariesclark closed 4 months ago

ariesclark commented 4 months ago

Describe the bug

declare const value: FragmentOf<...>
readFragment(value) // any.

Reproduction

No response

gql.tada version

1.5.1

Validations

kitten commented 4 months ago

Nice catch! As far as I can tell, this should be a really simple and clean fix. PR is linked