Inference lost in server function
Hello, I'm quite new to typescript but I don't understand this case where I have a middleware which, using its own validator return typed data but:
- If just after the middleware i connect it to the
.handler
then the types are correctly inferred for data
.
- If I use the server function .validator
after the middleware then the type of data
is lost.
If someone can explain to me this typescript behavior 🙂3 Replies
xenial-black•6mo ago
cc @Chris Horobin
like-goldOP•6mo ago
So is this a normal behavior or ? 🙂
xenial-black•6mo ago
don't think so. can you please create a GitHub issue for that?