Type instantiation is excessively deep and possibly infinite. ts(2589)
Iโm getting this error:
โType instantiation is excessively deep and possibly infinite. ts(2589)โ
It happens when I call an internal query using ctx.runQuery
The error seems related to the inferred internal types becoming too deep. The function itself works at runtime, but TypeScript complains.
Has anyone faced this before or found a good way to fix or work around it (e.g., type narrowing, explicit typing, or restructuring internal APIs)?
Any help would be appreciated. Thanks!

