Kranga
Kranga12mo ago

Subscription types are not inferred while queries and mutations are working fine

I am NOT working with a monorepo but while query and mutation types are being inferred out of the box on the client side, subscriptions are always inferred as any no matter how simple their types are.
No description
3 Replies
Kranga
KrangaOP12mo ago
This is the subscription implementation, it is just attaching a listener to an event emitter via a simple wrapper class. I even tried being pedantic with the types but it does not work
No description
Kranga
KrangaOP12mo ago
The subscription input type is z.void() but I don't think it makes any difference
Danny
Danny2mo ago
+1, having same issue Did you find a solution?