You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like we have an error with the typings for the hooks when it comes to returning a Promise<void> from the server-sdk:
'Promise' is not assignable to type 'Promise' is the error.
I think the problem is here. We have Promise<EvaluationContext | Promise<void>>. I think this should read: Promise<EvaluationContext> | Promise<void> instead, or I'm missing something.
## This PR
- Updates the server-side before hook type to perform async work without
modifying context.
### Related Issues
Fixes#689
### Notes
I added a test but the test runner isn't not validating types.
---------
Signed-off-by: Michael Beemer <[email protected]>
Co-authored-by: Todd Baert <[email protected]>
Observed behavior
It looks like we have an error with the typings for the hooks when it comes to returning a
Promise<void>
from the server-sdk:'Promise' is not assignable to type 'Promise' is the error.
I think the problem is here. We have
Promise<EvaluationContext | Promise<void>>
. I think this should read:Promise<EvaluationContext> | Promise<void>
instead, or I'm missing something.cc @beeme1mr @lukas-reining
Expected Behavior
No response
Steps to reproduce
No response
The text was updated successfully, but these errors were encountered: