Fixed a few type-related bugs.
- Extending with just a
transform
, not at the end of the extend-chain, no longer causes types to resolve incorrectly. - Extending with just a
useQueries
at the end of the extend-chain no longer causes types to resolve incorrectly. - Refactored types in code to make it more readable