You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking at the Any/Compute type and my most immediate reaction is: "It seems super useful, so probably TS has a good reason not to compute the final type by default".
However, I think that I lack the deep TS expertise to know why that's the case. With that in mind:
Is Any/Compute safe to use for every type? Are there known edge cases?
Is it known why TypeScript chooses not to compute the final type by default? Is that just for efficiency?
Thanks for a great library! 🙂
The text was updated successfully, but these errors were encountered:
Will yield a type that, when you look at it, is filled with anys. It just looks like any. In fact the type information is well preserved:
typetest0=ComputedO['o']['o']['o']['a']
This happens only on circular references. Lucky for us, I'm going to roll out a version that is able to handle circular references - to have even more beautiful outputs. If you want, give it a shot:
The TypeScript team provide very generic tools to do many things with the type system, they give us the choice to build libraries - which is great. But this can make it hard to learn and his is what ts-toolbelt tries to solve.
Thanks for a great library!
Thanks! If you have any question, I'm always here to help!
I'm looking at the
Any/Compute
type and my most immediate reaction is: "It seems super useful, so probably TS has a good reason not to compute the final type by default".However, I think that I lack the deep TS expertise to know why that's the case. With that in mind:
Any/Compute
safe to use for every type? Are there known edge cases?Thanks for a great library! 🙂
The text was updated successfully, but these errors were encountered: