E2E Type safety: What am I missing?
I'm exploring e2e type safety and am curious what I am missing.
Here's my server route:
And I consume this on the client like so:
I have to explicitly state the expected return type from the useFetch hook. I assumed this would be inferred from the backend.
Here's a reproduction: https://github.com/CodyBontecou/nuxt-e2e-types
0 Replies