We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
useRequestPreSend
Describe the bug The dynamic parameters guide states that:
The handler may return the response immediately or as a promise which resolves to the response
This is not reflected in the Typescript types for useRequestPreSend defined here
To Reproduce Steps to reproduce the behavior:
Expected behavior No Typescript errors, as async functions are allowed.
Versions 0.11.3 (and earlier)
0.11.3
Code The following Typescript type definition could work:
type UseRequestPreSendResponse = { items?: BatchItem[]; options?: CreateOptions } export const useRequestPreSend: (cb: (data: PreSendData) => UseRequestPreSendResponse | Promise<UseRequestPreSendResponse>) => void;
The text was updated successfully, but these errors were encountered:
Thanks! 🎉
Sorry, something went wrong.
thanks @larrifax - 0.11.4 is now published with the fix
yoavniran
Successfully merging a pull request may close this issue.
Describe the bug
The dynamic parameters guide states that:
This is not reflected in the Typescript types for
useRequestPreSend
defined hereTo Reproduce
Steps to reproduce the behavior:
useRequestPreSend
useRequestPreSend
Expected behavior
No Typescript errors, as async functions are allowed.
Versions
0.11.3
(and earlier)Code
The following Typescript type definition could work:
The text was updated successfully, but these errors were encountered: