-
Notifications
You must be signed in to change notification settings - Fork 57
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 syncmanager typedefs to use abstractlevel #309
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
TBDocs Report ✅ No errors or warnings @web5/api
Updated @ 2023-11-24T19:29:13.116Z - Commit: |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #309 +/- ##
==========================================
- Coverage 90.80% 90.78% -0.03%
==========================================
Files 74 74
Lines 14072 14089 +17
Branches 1387 1390 +3
==========================================
+ Hits 12778 12790 +12
- Misses 1269 1273 +4
- Partials 25 26 +1
|
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 thiink the desired convention for imports from top to bottom in this repo (though i'm sure there's evidence of the contrary in a few places bc of time constraints) is:
- all
import type
s first - then all
import
s
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.
We can probably run a formatter that does this in the future. Although past experience has been that import sorting is always a fail
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.
done
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.
left 1 small comment. other than that, looks great
* fix syncmanager to use abstractlevel * fix type * organize imports
* fix syncmanager to use abstractlevel * fix type * organize imports
Reason for PR
When using typedefs with LevelDB they're meant to adhere to the abstract-level interfaces rather than directly using the typedefs from the
Level
package (which is a specific implementation of abstract level).How PR was implemented
Used the same approach as dwn-js-sdk by pulling from the
AbstractLevel
interface and correctly annotating its generics