@openfn/language-collections 0.8.5 → 0.8.6
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/package.json +1 -1
- package/types/collections.d.ts +1 -1
package/package.json
CHANGED
package/types/collections.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export function get(name: string, query?: string | QueryOptions): (state: any) =
|
|
|
37
37
|
* @public
|
|
38
38
|
* @function
|
|
39
39
|
* @param {string} name - The name of the collection to fetch from
|
|
40
|
-
* @param keygen - a function which generates a key for each value: (value, index) => key. Pass a string to set a static key for a single item.
|
|
40
|
+
* @param keygen - a function which generates a key for each value: (value, state, index) => key. Pass a string to set a static key for a single item.
|
|
41
41
|
* @param values - an array of values to set, or a single value.
|
|
42
42
|
* @example <caption>Set a number of values using each value's id property as a key</caption>
|
|
43
43
|
* collections.set('my-collection', (item) => item.id, $.data)
|