kysely
kysely copied to clipboard
fix(helpers): JSON helpers' return types incorrectly have `Date`s and other JS/Node-native instances that require data type metadata.
Hey :wave:
closes #482.
We're going for a shallow approach - no recursion:
-
Recursion would be very expensive at compile time.
-
JSON results of nested JSON helpers should already be covered by their return type calculation.
-
If you have JSON columns, you should have already defined them properly - no JS/Node native, JSON invalid, types in their
SelectType. -
PostgreSQL arrays are in the scope of this change. e.g. a
timestamp[]column would bestring[], notDate[].
Typings test seems to be running for same amount of time. 😬
Will add some more cases tomorrow.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| kysely | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 18, 2025 0:07am |