react-native-onyx 3.0.152 → 3.0.154
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/OnyxKeys.d.ts +1 -1
- package/dist/OnyxKeys.js +0 -8
- package/package.json +1 -1
package/dist/OnyxKeys.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ declare function getMembersOfCollection(collectionKey: OnyxKey): Set<OnyxKey> |
|
|
|
60
60
|
* @returns A tuple of [collectionKey, memberId]
|
|
61
61
|
* @throws If the key is not a valid collection member key
|
|
62
62
|
*/
|
|
63
|
-
declare function splitCollectionMemberKey<TKey extends CollectionKey,
|
|
63
|
+
declare function splitCollectionMemberKey<TKey extends CollectionKey>(key: TKey, collectionKey?: string): [TKey extends `${infer Prefix}_${string}` ? `${Prefix}_` : never, string];
|
|
64
64
|
/**
|
|
65
65
|
* Initializes the RAM-only key set. Called once during Onyx.init().
|
|
66
66
|
*/
|
package/dist/OnyxKeys.js
CHANGED
|
@@ -146,14 +146,6 @@ function deregisterMemberKey(key) {
|
|
|
146
146
|
function getMembersOfCollection(collectionKey) {
|
|
147
147
|
return collectionToMembersMap.get(collectionKey);
|
|
148
148
|
}
|
|
149
|
-
/**
|
|
150
|
-
* Splits a collection member key into the collection key part and the ID part.
|
|
151
|
-
*
|
|
152
|
-
* @param key - The collection member key to split
|
|
153
|
-
* @param collectionKey - Optional pre-resolved collection key for optimization
|
|
154
|
-
* @returns A tuple of [collectionKey, memberId]
|
|
155
|
-
* @throws If the key is not a valid collection member key
|
|
156
|
-
*/
|
|
157
149
|
function splitCollectionMemberKey(key, collectionKey) {
|
|
158
150
|
if (collectionKey && !isCollectionMemberKey(collectionKey, key)) {
|
|
159
151
|
throw new Error(`Invalid '${collectionKey}' collection key provided, it isn't compatible with '${key}' key.`);
|