Skip to content

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

Description

@simonireilly

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions