You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the responder interface is passive and returns an any type.
In order to allow a typed response, we should infer the type in the actual responder.
This might be a simple case of saying that the return type of a responder should extend any and allowing typescript to narrow the type once the function is actually called.
The text was updated successfully, but these errors were encountered:
simonireilly
changed the title
A response builder that returns the type of the response body as an object
feat: a response builder that returns the type of the response body as an object
Jan 29, 2022
Currently, the responder interface is passive and returns an
any
type.In order to allow a typed response, we should infer the type in the actual responder.
This might be a simple case of saying that the return type of a responder should
extend any
and allowing typescript to narrow the type once the function is actually called.The text was updated successfully, but these errors were encountered: