I'm using suretype for Express input validation, what I want is for example, to validate req.params and req.query, all variables in those objects come as strings, but I want the type resulting from calling EnsureFunction<> to have the inputs that are valid numbers to be number type, is this possible? any ideas on how to accomplish that? thanks
I'm using suretype for Express input validation, what I want is for example, to validate
req.params
andreq.query
, all variables in those objects come as strings, but I want the type resulting from callingEnsureFunction<>
to have the inputs that are valid numbers to be number type, is this possible? any ideas on how to accomplish that? thanks