mm-ninja-turtles / turtle-express

My attempt of making Express.JS a typesafe router with Zod.
3 stars 0 forks source link

[bug]: remove `response` object from resolver function args. #17

Closed wai-lin closed 2 years ago

wai-lin commented 2 years ago

Problem

resolver() function currently provide express's response object and it should be removed since it will give the user the freedom to response as they wanted and it'll create the problem of response data is not matching with response schema.

Solution

  1. remove response object from args
  2. 16 will solve the necessity of response object inside resolver function

wai-lin commented 2 years ago

merged in #18