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
That looks nice and it should be perfectly possible! I am currently working on an internal project that does something related. I will keep you updated!
It would be really powerful to be able to apply transformation to an object using the well-known pattern:
And have TypeScript infers the type of
transformedObject
based on the transformation applied to the valuesf(value)
.We are half way there already with the utilities:
objectEntries()
fromEntires()
But the typing of
fromEntires()
would have to be improved a bit so that the following example would pass:In the current version of tsafe we're getting this:
The text was updated successfully, but these errors were encountered: