-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d56511
commit b362b10
Showing
3 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
4 changes: 2 additions & 2 deletions
4
core/src/commonMain/kotlin/org/mobilenativefoundation/store/core5/KeyProvider.kt
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
package org.mobilenativefoundation.store.core5 | ||
|
||
interface KeyProvider<Id : Any, Single : StoreData.Single<Id>> { | ||
fun from(key: StoreKey.Collection<Id>, value: Single): StoreKey.Single<Id> | ||
fun from(key: StoreKey.Single<Id>, value: Single): StoreKey.Collection<Id> | ||
fun fromCollection(key: StoreKey.Collection<Id>, value: Single): StoreKey.Single<Id> | ||
fun fromSingle(key: StoreKey.Single<Id>, value: Single): StoreKey.Collection<Id> | ||
} |
This file contains 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