Replies: 4 comments 6 replies
-
"Most complex types":
|
Beta Was this translation helpful? Give feedback.
-
Thanks for sharing @markerikson! Do you have some type-level unit tests for this |
Beta Was this translation helpful? Give feedback.
-
On the more trivial side, but… APIs w/ either inconsistent or undesirable casing in their responses. I usually put hotscript's pipe w/ a recursive camelise function in my zod schema's last transform call to enforce camelcase w/ correct typings. |
Beta Was this translation helpful? Give feedback.
-
The Infer* types in h5p-types
I haven't had a real look, but I'm sure that these could be simplified by HotScript, especially since deep semantics easily breaks TS' max recursion. These tests are not too far away from the limit: https://github.com/boyum/h5p-types/blob/main/test/InferParamsFromSemantics.test.ts |
Beta Was this translation helpful? Give feedback.
-
Hey everyone!
Here is a thread to collect real-world use cases for hotscript :)
As we stabilize the API, we are very curious about the problems you are solving with this library, and if/how it simplifies your type-level logic.
Even if you are not using hotscript yet, what is the most complex type you have ever written?
Beta Was this translation helpful? Give feedback.
All reactions