Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: a response builder that returns the type of the response body as an object #34

Open
Tracked by #8
simonireilly opened this issue Jan 29, 2022 · 0 comments
Assignees

Comments

@simonireilly
Copy link
Owner

simonireilly commented 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.

@simonireilly simonireilly self-assigned this Jan 29, 2022
@simonireilly 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant