Closed vrn-hkz closed 5 months ago
It was because I was returning a response in the derive like as if it was a handler hook. return buildErrorResponse('Unauthorized');
I have moved this logic into a onBeforeHandle
hook and everything is fine now
What version of Elysia.JS is running?
1.0.13
What platform is your computer?
Linux 6.8.0-76060800daily20240311-generic x86_64 x86_64
What steps can reproduce the bug?
If
derive
is not async, the type is inferred in WS properly, but with async it does not show upWhat is the expected behavior?
Async derived types are correctly inferred
What do you see instead?
No response
Additional information
No response