tsafe icon indicating copy to clipboard operation
tsafe copied to clipboard

πŸ”© The missing TypeScript utils

Results 7 tsafe issues
Sort by recently updated
recently updated
newest added

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

hacktoberfest-accepted

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 ![Captura de tela de 2023-11-16 09-19-04](https://github.com/garronej/tsafe/assets/33105540/b59ccd76-6a4c-4bf1-b34a-45a1467910bc) Schema type inferred ![Captura de tela de 2023-11-16...

Sometime `assert` give an error when infact it shoud work. Like for example here: https://github.com/codegouvfr/react-dsfr/blob/842f7b820f296553593ac68aff1e72f620f030f8/src/Alert.tsx#L98 We should be able to write `assert`. Investigate if https://github.com/SamVerschueren/tsd has better results.

Hi, thank you a lot for this great library. I don't know if it's doable but it would be so great to be able to trigger warnings instead of errors....

![image](https://github.com/garronej/tsafe/assets/6702424/ed953290-0d04-4e07-bca4-f3bca5da31f5)