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: Storage interface types #10696
fix: Storage interface types #10696
Conversation
Codecov Report
@@ Coverage Diff @@
## main #10696 +/- ##
==========================================
+ Coverage 84.28% 85.65% +1.37%
==========================================
Files 256 196 -60
Lines 18527 18261 -266
Branches 3981 3892 -89
==========================================
+ Hits 15615 15642 +27
+ Misses 2822 2543 -279
+ Partials 90 76 -14
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good to me.
T | ||
>; | ||
|
||
export type StorageCopyConfig<T extends Record<string, any>> = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see the Record<string, any>
type being repeated on most types above. A suggestion I'm thinking would be creating a default config type
type DefaultStorageConfig = Record<string, any>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Thanks @stocaaro 🚢
Description of changes
Adding Storage generics type clarification.
Without this fix. TS Strict is expressing issues in VSCode and Angular 15 fails to build.
Issue #, if available
#10687
Description of how you validated changes
Running tests and linking this change to an existing project.
Checklist
yarn test
passesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.