-
I've got a weird type inference issue lately. Given the following hook:
which uses the following generated hook
the response of this hook is typed as the following (in the code) as is expected
in which
and yet, Because of this, I have to remember to use undefined checks and optional chaining, which is kind of annoying. Does anyone know where to look? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is not a codegen issue btw, the following is also typed this way
|
Beta Was this translation helpful? Give feedback.
This is not a codegen issue btw, the following is also typed this way