-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
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
fix: [GH-267] Fix CacheOptions Related Types #268
Conversation
* Fix RequestOptions.cacheOptions function return type to also return a non-promise value. * Fix propagation of the cache options generic type `RequestOptions` and `AugmentedRequest`.
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Update generic args when calling policyRequestFrom()
180ce38
to
80ee856
Compare
Hi @HishamAli81, this looks good to me. I added one more commit, would you take a look and let me know if you agree with the change? I think it makes sense to update the type of the fetch argument |
* Fix RequestOptions.cacheOptions function return type to also return a non-promise value. * Fix propagation of the cache options generic type `RequestOptions` and `AugmentedRequest`.
Update generic args when calling policyRequestFrom()
…-GH-267 # Conflicts: # src/HTTPCache.ts
Co-authored-by: Trevor Scheer <trevor.scheer@gmail.com>
Looks good to me. Thanks! |
RequestOptions
andAugmentedRequest
.Fixes #267