Replies: 1 comment
-
I have a different use case but i'm also trying to return a different response than what the You can return the following object and it does return to the client but it feels brittle and doesn't play nice with the types. return {
result: { your: "data" }
} |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I am catching all errors from the next function in a server middleware, but how can I return a success response? The return type is expected to match the return type of next.
Beta Was this translation helpful? Give feedback.
All reactions