tsafe
tsafe copied to clipboard
π© The missing TypeScript utils
It would be really powerful to be able to apply transformation to an object using the well-known pattern: ```typescript const transformedObject= Object.fromEntries( Object.entries(originalObject) .map(([key, value])=> [key, f(value)] ); ``` And...
Not sure of nested examples because it is not possible to achieve with Pick util. Do you have idea how to implement it? Follow up on: https://github.com/garronej/tsafe/pull/15#issuecomment-1269892870
Benefits: * Itβs easier to read the actual code that is needed for using tsafe. * Animations distract from the remaining content (itβs bad in my case but I know...
I encountered a problem identifying equality between types generated by z.custom on an object General file  Schema type inferred 
Sometimes, error messages are expensive to calculate. It would be nice to be able to provide a callback for `msg` so that calculation can be deferred until needed. For example:...
I consider types are equal if they are extend each other. Unfortunately it is not the case for Equal ```ts enum Enum { A = "a", B = "b", }...