-
Notifications
You must be signed in to change notification settings - Fork 945
Add a type parameter to Persistence #1047
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
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
2c93300
Cherry pick sequence number starting point
96d732c
Working on typed transactions
59121ba
Start plumbing in sequence number
4b75267
Back out sequence number changes
29505fc
[AUTOMATED]: Prettier Code Styling
d03f608
Fix tests
e7efc7b
[AUTOMATED]: Prettier Code Styling
fd1359a
Fix lint
9a76422
[AUTOMATED]: Prettier Code Styling
a7b46dd
Merge branch 'master' into typed_transactions
3abdbbe
Uncomment line
5b66917
Fix the merge conflicts
a2848ff
MemoryPersistenceTransaction -> MemoryTransaction
70e8e51
[AUTOMATED]: Prettier Code Styling
ca4bc5d
Review updates
7909aef
Style
1bd431e
Merge branch 'master' into typed_transactions
9fc2b89
Lint and style
d4f1dcc
Review feedback
a94c026
[AUTOMATED]: Prettier Code Styling
fa05379
Merge branch 'master' into typed_transactions
068a4af
Revert some unintentional import churn
8e46ab9
Line 44 should definitely be empty
091038c
Checkpoint before adding helper function for stores
f0ed2dd
Use a helper for casting PersistenceTransaction to IndexedDbTransaction
ca53e31
[AUTOMATED]: Prettier Code Styling
4193323
Remove errant generic type
1a39850
Lint
80a2459
Merge branch 'master' into typed_transactions
7d14f14
Merge branch 'master' into typed_transactions
9e570c8
Fix typo
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is there something blocking us from doing this right now?
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.
Well, kinda. It compiles, but only because we don't enforce strict function types. This is replicating the type signature from
GarbageSource
, which allowsnull
. So actually removing it from this function gets us no safety and a more obscure runtime error than what you would currently get.The solution will eventually arrive when we get rid of
GarbageSource
.