Skip to content

Add typed routes, params, and response body to test app #51

@viniciusdacal

Description

@viniciusdacal

What

The test app should provide full type safety for routes, request params/body/headers, and response bodies:

  • Typed route strings — autocomplete for registered routes (app.get('/users/:id') type-checked)
  • Typed request params/body/headers per routeparams: { id: string } inferred from route schema
  • Typed response bodyres.body narrows via res.ok discriminated union
  • Typed request headers per route — headers typed from route's header schema

Blocked by

  • Compiler implementation — these features require the compiler to generate route type information from module/router definitions

Context

Listed as "Blocked by Compiler (out of scope)" in the testing implementation plan (plans/vertz-testing-implementation.md, lines 9-16). Also described in the testing design doc (plans/vertz-testing-design.md).

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogDeferred work itemblockedWaiting on a prerequisite

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions