Content
@
https://warpcast.com/~/channel/fc-devs
0 reply
0 recast
0 reaction
Darryl Yeo đ ïž
@darrylyeo
So I was upgrading Hubble to @viem v2.0, and some wrapper class instances were giving *super gnarly* deeply-nested TypeScript errors in some unexpected places. Of course, viem's internal conditional types run so deep that it's impossible to interpret the root cause of the mismatch just by looking at one of these đ€Ș
4 replies
0 recast
31 reactions
Darryl Yeo đ ïž
@darrylyeo
@v, you wanted more context on the `@ts-ignore`⊠This was the context đ
1 reply
0 recast
1 reaction
Wasif Iqbal
@wazzymandias.eth
the massive object to object comparison with one slightly different attribute, that has its own deeply nested structure has bit me in the past viem is great but once you go slightly off the beaten path it gets murky real quick
1 reply
0 recast
2 reactions
Vladyslav Dalechyn
@dalechyn.eth
what a G! Maybe this would be helpful next time! https://github.com/yoavbls/pretty-ts-errors
1 reply
0 recast
0 reaction
Timur Badretdinov
@destiner.eth
geez, the error is larger than the average ts codebase
0 reply
0 recast
0 reaction