bug: Type inference not working for streams #6407
Labels
blocked
bug in documentation/example
📚 documentation / examples
Improvements or additions to documentation
Provide environment information
https://trpc.io/?try=minimal#try-it-out
Describe the bug
https://trpc.io/?try=minimal#try-it-out
Even in the minimal example, type inference is not working for output of async generators.
In the documentation for HTTP Batch Stream Link, it seems like type inference for async generators should still work
![Image](https://private-user-images.githubusercontent.com/19956321/405466970-f95794b7-1ef0-4a6b-bc68-096015ecc30a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNDE2MjMsIm5iZiI6MTczOTI0MTMyMywicGF0aCI6Ii8xOTk1NjMyMS80MDU0NjY5NzAtZjk1Nzk0YjctMWVmMC00YTZiLWJjNjgtMDk2MDE1ZWNjMzBhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDAyMzUyM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgxMDI2ZTNlOGNjMjBiODgxYjVjNjQ5ZmZiNGM0NjcxMThkMzU3NmI0YzhlYTlkYjFlZWE2YzI0MWEyODczZWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ZLXmMQThsKv3nuZU5I8Jhebl-t7dUJMXpBwVi59_Es8)
Link to reproduction
https://trpc.io/?try=minimal#try-it-out
To reproduce
open up https://trpc.io/?try=minimal#try-it-out
hover over the type on the output of examples.iterable
notice it is any type
Additional information
No response
👨👧👦 Contributing
The text was updated successfully, but these errors were encountered: