Extract relevant information from the request into correctly typed local variables.
Opened this issue · 0 comments
AsFal commented
Given an endpoint that receives a body of type A and has a url parameter of type B with name param, the generator would add the following local variables to the top of the analog controller function.
const body: A = req.body;
const param: B = cast_to_B(req.params.param);