Typed .json
#1451
arthur-fontaine
started this conversation in
Ideas
Typed `.json`
#1451
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Would it be possible for the type of the
.json
property to represent the exact same type that the schema?My use case is
I'm using Hono RPC to get a typed API. I’d like to avoid sharing any code and schema between my API and frontend, except the type of my main router. If the
.json
property would be typed, I could re-create the same type-safe ArkType type on the frontend side (my use case would not be solved with just a typed.json
, but this would be a step forward).Beta Was this translation helpful? Give feedback.
All reactions