update, text, response

This commit is contained in:
2025-11-02 11:09:14 +01:00
parent 14776c86b0
commit eed8a4ddcf
2794 changed files with 156786 additions and 129204 deletions

View File

@@ -33,7 +33,7 @@ type $KeyOf<C> = $Call<
(<T>(?$ReadOnlyArray<T>) => number) &
(<T>(?RecordInstance<T> | T) => $Keys<T>) &
(<T: Object>(T) => $Keys<T>),
C
C,
>;
type $ValOf<C, K = $KeyOf<C>> = $Call<
@@ -42,7 +42,7 @@ type $ValOf<C, K = $KeyOf<C>> = $Call<
(<T, K: $Keys<T>>(?RecordInstance<T> | T, K) => $ElementType<T, K>) &
(<T: Object>(T) => $Values<T>),
C,
K
K,
>;
type $IterableOf<C> = $Call<
@@ -53,11 +53,11 @@ type $IterableOf<C> = $Call<
V:
| KeyedCollection<any, any>
| RecordInstance<any>
| PlainObjInput<any, any>
| PlainObjInput<any, any>,
>(
V
) => Iterable<[$KeyOf<V>, $ValOf<V>]>),
C
C,
>;
const PairSorting: $ReadOnly<{ LeftThenRight: number, RightThenLeft: number }> =
@@ -76,8 +76,10 @@ declare class _Collection<K, +V> implements ValueObject {
has(key: K): boolean;
includes(value: V): boolean;
contains(value: V): boolean;
first<NSV>(notSetValue?: NSV): V | NSV;
last<NSV>(notSetValue?: NSV): V | NSV;
first(): V | void;
first<NSV>(notSetValue: NSV): V | NSV;
last(): V | void;
last<NSV>(notSetValue: NSV): V | NSV;
hasIn(keyPath: Iterable<mixed>): boolean;
@@ -95,7 +97,7 @@ declare class _Collection<K, +V> implements ValueObject {
NSV,
K2: $KeyOf<V>,
K3: $KeyOf<$ValOf<V, K2>>,
K4: $KeyOf<$ValOf<$ValOf<V, K2>, K3>>
K4: $KeyOf<$ValOf<$ValOf<V, K2>, K3>>,
>(
keyPath: [K, K2, K3, K4],
notSetValue: NSV
@@ -105,7 +107,7 @@ declare class _Collection<K, +V> implements ValueObject {
K2: $KeyOf<V>,
K3: $KeyOf<$ValOf<V, K2>>,
K4: $KeyOf<$ValOf<$ValOf<V, K2>, K3>>,
K5: $KeyOf<$ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>>
K5: $KeyOf<$ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>>,
>(
keyPath: [K, K2, K3, K4, K5],
notSetValue: NSV
@@ -218,16 +220,16 @@ declare class _Collection<K, +V> implements ValueObject {
context?: mixed
): Map<G, number>;
find<NSV>(
find(
predicate: (value: V, key: K, iter: this) => mixed,
context?: mixed,
notSetValue?: NSV
): V | NSV;
findLast<NSV>(
notSetValue?: V
): V | void;
findLast(
predicate: (value: V, key: K, iter: this) => mixed,
context?: mixed,
notSetValue?: NSV
): V | NSV;
notSetValue?: V
): V | void;
findEntry(predicate: (value: V, key: K, iter: this) => mixed): [K, V] | void;
findLastEntry(
@@ -439,7 +441,7 @@ declare class IndexedCollection<+T> extends Collection<number, T> {
e: Iterable<E>,
..._: []
): IndexedCollection<
[T | void, A | void, B | void, C | void, D | void, E | void]
[T | void, A | void, B | void, C | void, D | void, E | void],
>;
zipWith<A, R>(
@@ -793,7 +795,7 @@ declare class UpdatableInCollection<K, +V> {
K2: $KeyOf<V>,
K3: $KeyOf<$ValOf<V, K2>>,
K4: $KeyOf<$ValOf<$ValOf<V, K2>, K3>>,
S: $ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>
S: $ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>,
>(
keyPath: [K, K2, K3, K4],
value: S
@@ -803,7 +805,7 @@ declare class UpdatableInCollection<K, +V> {
K3: $KeyOf<$ValOf<V, K2>>,
K4: $KeyOf<$ValOf<$ValOf<V, K2>, K3>>,
K5: $KeyOf<$ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>>,
S: $ValOf<$ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>, K5>
S: $ValOf<$ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>, K5>,
>(
keyPath: [K, K2, K3, K4, K5],
value: S
@@ -818,7 +820,7 @@ declare class UpdatableInCollection<K, +V> {
deleteIn<
K2: $KeyOf<V>,
K3: $KeyOf<$ValOf<V, K2>>,
K4: $KeyOf<$ValOf<$ValOf<V, K2>, K3>>
K4: $KeyOf<$ValOf<$ValOf<V, K2>, K3>>,
>(
keyPath: [K, K2, K3, K4]
): this;
@@ -826,7 +828,7 @@ declare class UpdatableInCollection<K, +V> {
K2: $KeyOf<V>,
K3: $KeyOf<$ValOf<V, K2>>,
K4: $KeyOf<$ValOf<$ValOf<V, K2>, K3>>,
K5: $KeyOf<$ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>>
K5: $KeyOf<$ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>>,
>(
keyPath: [K, K2, K3, K4, K5]
): this;
@@ -840,7 +842,7 @@ declare class UpdatableInCollection<K, +V> {
removeIn<
K2: $KeyOf<V>,
K3: $KeyOf<$ValOf<V, K2>>,
K4: $KeyOf<$ValOf<$ValOf<V, K2>, K3>>
K4: $KeyOf<$ValOf<$ValOf<V, K2>, K3>>,
>(
keyPath: [K, K2, K3, K4]
): this;
@@ -848,7 +850,7 @@ declare class UpdatableInCollection<K, +V> {
K2: $KeyOf<V>,
K3: $KeyOf<$ValOf<V, K2>>,
K4: $KeyOf<$ValOf<$ValOf<V, K2>, K3>>,
K5: $KeyOf<$ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>>
K5: $KeyOf<$ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>>,
>(
keyPath: [K, K2, K3, K4, K5]
): this;
@@ -870,7 +872,7 @@ declare class UpdatableInCollection<K, +V> {
NSV,
K2: $KeyOf<V>,
K3: $KeyOf<$ValOf<V, K2>>,
S: $ValOf<$ValOf<V, K2>, K3>
S: $ValOf<$ValOf<V, K2>, K3>,
>(
keyPath: [K, K2, K3],
notSetValue: NSV,
@@ -879,7 +881,7 @@ declare class UpdatableInCollection<K, +V> {
updateIn<
K2: $KeyOf<V>,
K3: $KeyOf<$ValOf<V, K2>>,
S: $ValOf<$ValOf<V, K2>, K3>
S: $ValOf<$ValOf<V, K2>, K3>,
>(
keyPath: [K, K2, K3],
updater: (value: $ValOf<$ValOf<V, K2>, K3>) => S
@@ -889,7 +891,7 @@ declare class UpdatableInCollection<K, +V> {
K2: $KeyOf<V>,
K3: $KeyOf<$ValOf<V, K2>>,
K4: $KeyOf<$ValOf<$ValOf<V, K2>, K3>>,
S: $ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>
S: $ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>,
>(
keyPath: [K, K2, K3, K4],
notSetValue: NSV,
@@ -899,7 +901,7 @@ declare class UpdatableInCollection<K, +V> {
K2: $KeyOf<V>,
K3: $KeyOf<$ValOf<V, K2>>,
K4: $KeyOf<$ValOf<$ValOf<V, K2>, K3>>,
S: $ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>
S: $ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>,
>(
keyPath: [K, K2, K3, K4],
updater: (value: $ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>) => S
@@ -910,7 +912,7 @@ declare class UpdatableInCollection<K, +V> {
K3: $KeyOf<$ValOf<V, K2>>,
K4: $KeyOf<$ValOf<$ValOf<V, K2>, K3>>,
K5: $KeyOf<$ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>>,
S: $ValOf<$ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>, K5>
S: $ValOf<$ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>, K5>,
>(
keyPath: [K, K2, K3, K4, K5],
notSetValue: NSV,
@@ -923,7 +925,7 @@ declare class UpdatableInCollection<K, +V> {
K3: $KeyOf<$ValOf<V, K2>>,
K4: $KeyOf<$ValOf<$ValOf<V, K2>, K3>>,
K5: $KeyOf<$ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>>,
S: $ValOf<$ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>, K5>
S: $ValOf<$ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>, K5>,
>(
keyPath: [K, K2, K3, K4, K5],
updater: (value: $ValOf<$ValOf<$ValOf<$ValOf<V, K2>, K3>, K4>, K5>) => S
@@ -936,7 +938,7 @@ declare class List<+T>
extends IndexedCollection<T>
mixins UpdatableInCollection<number, T>
{
static (collection?: Iterable<T>): List<T>;
static <T>(collection?: Iterable<T>): List<T>;
static of<T>(...values: T[]): List<T>;
@@ -1308,8 +1310,8 @@ declare class Set<+T> extends SetCollection<T> {
values: Iterable<[T, mixed]> | PlainObjInput<T, mixed>
): Set<T>;
static intersect(sets: Iterable<Iterable<T>>): Set<T>;
static union(sets: Iterable<Iterable<T>>): Set<T>;
static intersect<T>(sets: Iterable<Iterable<T>>): Set<T>;
static union<T>(sets: Iterable<Iterable<T>>): Set<T>;
static isSet: typeof isSet;
@@ -1688,7 +1690,7 @@ declare class RecordInstance<T: Object = Object> {
NSV,
K: $Keys<T>,
K2: $KeyOf<$ValOf<T, K>>,
K3: $KeyOf<$ValOf<$ValOf<T, K>, K2>>
K3: $KeyOf<$ValOf<$ValOf<T, K>, K2>>,
>(
keyPath: [K, K2, K3],
notSetValue: NSV
@@ -1698,7 +1700,7 @@ declare class RecordInstance<T: Object = Object> {
K: $Keys<T>,
K2: $KeyOf<$ValOf<T, K>>,
K3: $KeyOf<$ValOf<$ValOf<T, K>, K2>>,
K4: $KeyOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>>
K4: $KeyOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>>,
>(
keyPath: [K, K2, K3, K4],
notSetValue: NSV
@@ -1709,7 +1711,7 @@ declare class RecordInstance<T: Object = Object> {
K2: $KeyOf<$ValOf<T, K>>,
K3: $KeyOf<$ValOf<$ValOf<T, K>, K2>>,
K4: $KeyOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>>,
K5: $KeyOf<$ValOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>, K4>>
K5: $KeyOf<$ValOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>, K4>>,
>(
keyPath: [K, K2, K3, K4, K5],
notSetValue: NSV
@@ -1756,7 +1758,7 @@ declare class RecordInstance<T: Object = Object> {
K: $Keys<T>,
K2: $KeyOf<$ValOf<T, K>>,
K3: $KeyOf<$ValOf<$ValOf<T, K>, K2>>,
S: $ValOf<$ValOf<$ValOf<T, K>, K2>, K3>
S: $ValOf<$ValOf<$ValOf<T, K>, K2>, K3>,
>(
keyPath: [K, K2, K3],
value: S
@@ -1766,7 +1768,7 @@ declare class RecordInstance<T: Object = Object> {
K2: $KeyOf<$ValOf<T, K>>,
K3: $KeyOf<$ValOf<$ValOf<T, K>, K2>>,
K4: $KeyOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>>,
S: $ValOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>, K4>
S: $ValOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>, K4>,
>(
keyPath: [K, K2, K3, K4],
value: S
@@ -1777,7 +1779,7 @@ declare class RecordInstance<T: Object = Object> {
K3: $KeyOf<$ValOf<$ValOf<T, K>, K2>>,
K4: $KeyOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>>,
K5: $KeyOf<$ValOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>, K4>>,
S: $ValOf<$ValOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>, K4>, K5>
S: $ValOf<$ValOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>, K4>, K5>,
>(
keyPath: [K, K2, K3, K4, K5],
value: S
@@ -1791,7 +1793,7 @@ declare class RecordInstance<T: Object = Object> {
deleteIn<
K: $Keys<T>,
K2: $KeyOf<$ValOf<T, K>>,
K3: $KeyOf<$ValOf<$ValOf<T, K>, K2>>
K3: $KeyOf<$ValOf<$ValOf<T, K>, K2>>,
>(
keyPath: [K, K2, K3]
): this & $ReadOnly<T>;
@@ -1799,7 +1801,7 @@ declare class RecordInstance<T: Object = Object> {
K: $Keys<T>,
K2: $KeyOf<$ValOf<T, K>>,
K3: $KeyOf<$ValOf<$ValOf<T, K>, K2>>,
K4: $KeyOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>>
K4: $KeyOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>>,
>(
keyPath: [K, K2, K3, K4]
): this & $ReadOnly<T>;
@@ -1808,7 +1810,7 @@ declare class RecordInstance<T: Object = Object> {
K2: $KeyOf<$ValOf<T, K>>,
K3: $KeyOf<$ValOf<$ValOf<T, K>, K2>>,
K4: $KeyOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>>,
K5: $KeyOf<$ValOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>, K4>>
K5: $KeyOf<$ValOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>, K4>>,
>(
keyPath: [K, K2, K3, K4, K5]
): this & $ReadOnly<T>;
@@ -1821,7 +1823,7 @@ declare class RecordInstance<T: Object = Object> {
removeIn<
K: $Keys<T>,
K2: $KeyOf<$ValOf<T, K>>,
K3: $KeyOf<$ValOf<$ValOf<T, K>, K2>>
K3: $KeyOf<$ValOf<$ValOf<T, K>, K2>>,
>(
keyPath: [K, K2, K3]
): this & $ReadOnly<T>;
@@ -1829,7 +1831,7 @@ declare class RecordInstance<T: Object = Object> {
K: $Keys<T>,
K2: $KeyOf<$ValOf<T, K>>,
K3: $KeyOf<$ValOf<$ValOf<T, K>, K2>>,
K4: $KeyOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>>
K4: $KeyOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>>,
>(
keyPath: [K, K2, K3, K4]
): this & $ReadOnly<T>;
@@ -1838,7 +1840,7 @@ declare class RecordInstance<T: Object = Object> {
K2: $KeyOf<$ValOf<T, K>>,
K3: $KeyOf<$ValOf<$ValOf<T, K>, K2>>,
K4: $KeyOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>>,
K5: $KeyOf<$ValOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>, K4>>
K5: $KeyOf<$ValOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>, K4>>,
>(
keyPath: [K, K2, K3, K4, K5]
): this & $ReadOnly<T>;
@@ -1862,7 +1864,7 @@ declare class RecordInstance<T: Object = Object> {
NSV,
K: $Keys<T>,
K2: $KeyOf<$ValOf<T, K>>,
S: $ValOf<$ValOf<T, K>, K2>
S: $ValOf<$ValOf<T, K>, K2>,
>(
keyPath: [K, K2],
notSetValue: NSV,
@@ -1877,7 +1879,7 @@ declare class RecordInstance<T: Object = Object> {
K: $Keys<T>,
K2: $KeyOf<$ValOf<T, K>>,
K3: $KeyOf<$ValOf<$ValOf<T, K>, K2>>,
S: $ValOf<$ValOf<$ValOf<T, K>, K2>, K3>
S: $ValOf<$ValOf<$ValOf<T, K>, K2>, K3>,
>(
keyPath: [K, K2, K3],
notSetValue: NSV,
@@ -1887,7 +1889,7 @@ declare class RecordInstance<T: Object = Object> {
K: $Keys<T>,
K2: $KeyOf<$ValOf<T, K>>,
K3: $KeyOf<$ValOf<$ValOf<T, K>, K2>>,
S: $ValOf<$ValOf<$ValOf<T, K>, K2>, K3>
S: $ValOf<$ValOf<$ValOf<T, K>, K2>, K3>,
>(
keyPath: [K, K2, K3],
updater: (value: $ValOf<$ValOf<$ValOf<T, K>, K2>, K3>) => S
@@ -1898,7 +1900,7 @@ declare class RecordInstance<T: Object = Object> {
K2: $KeyOf<$ValOf<T, K>>,
K3: $KeyOf<$ValOf<$ValOf<T, K>, K2>>,
K4: $KeyOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>>,
S: $ValOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>, K4>
S: $ValOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>, K4>,
>(
keyPath: [K, K2, K3, K4],
notSetValue: NSV,
@@ -1911,7 +1913,7 @@ declare class RecordInstance<T: Object = Object> {
K2: $KeyOf<$ValOf<T, K>>,
K3: $KeyOf<$ValOf<$ValOf<T, K>, K2>>,
K4: $KeyOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>>,
S: $ValOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>, K4>
S: $ValOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>, K4>,
>(
keyPath: [K, K2, K3, K4],
updater: (value: $ValOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>, K4>) => S
@@ -1923,7 +1925,7 @@ declare class RecordInstance<T: Object = Object> {
K3: $KeyOf<$ValOf<$ValOf<T, K>, K2>>,
K4: $KeyOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>>,
K5: $KeyOf<$ValOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>, K4>>,
S: $ValOf<$ValOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>, K4>, K5>
S: $ValOf<$ValOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>, K4>, K5>,
>(
keyPath: [K, K2, K3, K4, K5],
notSetValue: NSV,
@@ -1937,7 +1939,7 @@ declare class RecordInstance<T: Object = Object> {
K3: $KeyOf<$ValOf<$ValOf<T, K>, K2>>,
K4: $KeyOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>>,
K5: $KeyOf<$ValOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>, K4>>,
S: $ValOf<$ValOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>, K4>, K5>
S: $ValOf<$ValOf<$ValOf<$ValOf<$ValOf<T, K>, K2>, K3>, K4>, K5>,
>(
keyPath: [K, K2, K3, K4, K5],
updater: (
@@ -2026,7 +2028,7 @@ declare function getIn<
K: $KeyOf<C>,
K2: $KeyOf<$ValOf<C, K>>,
K3: $KeyOf<$ValOf<$ValOf<C, K>, K2>>,
NSV
NSV,
>(
collection: C,
keyPath: [K, K2, K3],
@@ -2038,7 +2040,7 @@ declare function getIn<
K2: $KeyOf<$ValOf<C, K>>,
K3: $KeyOf<$ValOf<$ValOf<C, K>, K2>>,
K4: $KeyOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>>,
NSV
NSV,
>(
collection: C,
keyPath: [K, K2, K3, K4],
@@ -2051,7 +2053,7 @@ declare function getIn<
K3: $KeyOf<$ValOf<$ValOf<C, K>, K2>>,
K4: $KeyOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>>,
K5: $KeyOf<$ValOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>, K4>>,
NSV
NSV,
>(
collection: C,
keyPath: [K, K2, K3, K4, K5],
@@ -2070,7 +2072,7 @@ declare function removeIn<
C,
K: $KeyOf<C>,
K2: $KeyOf<$ValOf<C, K>>,
K3: $KeyOf<$ValOf<$ValOf<C, K>, K2>>
K3: $KeyOf<$ValOf<$ValOf<C, K>, K2>>,
>(
collection: C,
keyPath: [K, K2, K3]
@@ -2080,7 +2082,7 @@ declare function removeIn<
K: $KeyOf<C>,
K2: $KeyOf<$ValOf<C, K>>,
K3: $KeyOf<$ValOf<$ValOf<C, K>, K2>>,
K4: $KeyOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>>
K4: $KeyOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>>,
>(
collection: C,
keyPath: [K, K2, K3, K4]
@@ -2091,7 +2093,7 @@ declare function removeIn<
K2: $KeyOf<$ValOf<C, K>>,
K3: $KeyOf<$ValOf<$ValOf<C, K>, K2>>,
K4: $KeyOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>>,
K5: $KeyOf<$ValOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>, K4>>
K5: $KeyOf<$ValOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>, K4>>,
>(
collection: C,
keyPath: [K, K2, K3, K4, K5]
@@ -2107,7 +2109,7 @@ declare function setIn<
C,
K: $KeyOf<C>,
K2: $KeyOf<$ValOf<C, K>>,
S: $ValOf<$ValOf<C, K>, K2>
S: $ValOf<$ValOf<C, K>, K2>,
>(
collection: C,
keyPath: [K, K2],
@@ -2118,7 +2120,7 @@ declare function setIn<
K: $KeyOf<C>,
K2: $KeyOf<$ValOf<C, K>>,
K3: $KeyOf<$ValOf<$ValOf<C, K>, K2>>,
S: $ValOf<$ValOf<$ValOf<C, K>, K2>, K3>
S: $ValOf<$ValOf<$ValOf<C, K>, K2>, K3>,
>(
collection: C,
keyPath: [K, K2, K3],
@@ -2130,7 +2132,7 @@ declare function setIn<
K2: $KeyOf<$ValOf<C, K>>,
K3: $KeyOf<$ValOf<$ValOf<C, K>, K2>>,
K4: $KeyOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>>,
S: $ValOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>, K4>
S: $ValOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>, K4>,
>(
collection: C,
keyPath: [K, K2, K3, K4],
@@ -2143,7 +2145,7 @@ declare function setIn<
K3: $KeyOf<$ValOf<$ValOf<C, K>, K2>>,
K4: $KeyOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>>,
K5: $KeyOf<$ValOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>, K4>>,
S: $ValOf<$ValOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>, K4>, K5>
S: $ValOf<$ValOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>, K4>, K5>,
>(
collection: C,
keyPath: [K, K2, K3, K4, K5],
@@ -2177,7 +2179,7 @@ declare function updateIn<
K: $KeyOf<C>,
K2: $KeyOf<$ValOf<C, K>>,
S: $ValOf<$ValOf<C, K>, K2>,
NSV
NSV,
>(
collection: C,
keyPath: [K, K2],
@@ -2188,7 +2190,7 @@ declare function updateIn<
C,
K: $KeyOf<C>,
K2: $KeyOf<$ValOf<C, K>>,
S: $ValOf<$ValOf<C, K>, K2>
S: $ValOf<$ValOf<C, K>, K2>,
>(
collection: C,
keyPath: [K, K2],
@@ -2200,7 +2202,7 @@ declare function updateIn<
K2: $KeyOf<$ValOf<C, K>>,
K3: $KeyOf<$ValOf<$ValOf<C, K>, K2>>,
S: $ValOf<$ValOf<$ValOf<C, K>, K2>, K3>,
NSV
NSV,
>(
collection: C,
keyPath: [K, K2, K3],
@@ -2212,7 +2214,7 @@ declare function updateIn<
K: $KeyOf<C>,
K2: $KeyOf<$ValOf<C, K>>,
K3: $KeyOf<$ValOf<$ValOf<C, K>, K2>>,
S: $ValOf<$ValOf<$ValOf<C, K>, K2>, K3>
S: $ValOf<$ValOf<$ValOf<C, K>, K2>, K3>,
>(
collection: C,
keyPath: [K, K2, K3],
@@ -2225,7 +2227,7 @@ declare function updateIn<
K3: $KeyOf<$ValOf<$ValOf<C, K>, K2>>,
K4: $KeyOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>>,
S: $ValOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>, K4>,
NSV
NSV,
>(
collection: C,
keyPath: [K, K2, K3, K4],
@@ -2238,7 +2240,7 @@ declare function updateIn<
K2: $KeyOf<$ValOf<C, K>>,
K3: $KeyOf<$ValOf<$ValOf<C, K>, K2>>,
K4: $KeyOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>>,
S: $ValOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>, K4>
S: $ValOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>, K4>,
>(
collection: C,
keyPath: [K, K2, K3, K4],
@@ -2252,7 +2254,7 @@ declare function updateIn<
K4: $KeyOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>>,
K5: $KeyOf<$ValOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>, K4>>,
S: $ValOf<$ValOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>, K4>, K5>,
NSV
NSV,
>(
collection: C,
keyPath: [K, K2, K3, K4, K5],
@@ -2268,7 +2270,7 @@ declare function updateIn<
K3: $KeyOf<$ValOf<$ValOf<C, K>, K2>>,
K4: $KeyOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>>,
K5: $KeyOf<$ValOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>, K4>>,
S: $ValOf<$ValOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>, K4>, K5>
S: $ValOf<$ValOf<$ValOf<$ValOf<$ValOf<C, K>, K2>, K3>, K4>, K5>,
>(
collection: C,
keyPath: [K, K2, K3, K4, K5],
@@ -2282,7 +2284,7 @@ declare function merge<C>(
...collections: Array<
| $IterableOf<C>
| $Shape<RecordValues<C>>
| PlainObjInput<$KeyOf<C>, $ValOf<C>>
| PlainObjInput<$KeyOf<C>, $ValOf<C>>,
>
): C;
declare function mergeWith<C>(
@@ -2291,7 +2293,7 @@ declare function mergeWith<C>(
...collections: Array<
| $IterableOf<C>
| $Shape<RecordValues<C>>
| PlainObjInput<$KeyOf<C>, $ValOf<C>>
| PlainObjInput<$KeyOf<C>, $ValOf<C>>,
>
): C;
declare function mergeDeep<C>(
@@ -2299,7 +2301,7 @@ declare function mergeDeep<C>(
...collections: Array<
| $IterableOf<C>
| $Shape<RecordValues<C>>
| PlainObjInput<$KeyOf<C>, $ValOf<C>>
| PlainObjInput<$KeyOf<C>, $ValOf<C>>,
>
): C;
declare function mergeDeepWith<C>(
@@ -2308,7 +2310,7 @@ declare function mergeDeepWith<C>(
...collections: Array<
| $IterableOf<C>
| $Shape<RecordValues<C>>
| PlainObjInput<$KeyOf<C>, $ValOf<C>>
| PlainObjInput<$KeyOf<C>, $ValOf<C>>,
>
): C;