( collection: C, key: K, notSetValue: NSV | UpdaterFunction<V>, updater?: UpdaterFunctionWithNSV<V, NSV> )
| 79 | ): { [key: string]: V }; |
| 80 | |
| 81 | export function update< |
| 82 | K, |
| 83 | V, |
| 84 | TProps extends object, |
| 85 | C extends PossibleCollection<K, V, TProps>, |
| 86 | NSV, |
| 87 | >( |
| 88 | collection: C, |
| 89 | key: K, |
| 90 | notSetValue: NSV | UpdaterFunction<V>, |
| 91 | updater?: UpdaterFunctionWithNSV<V, NSV> |
| 92 | ) { |
| 93 | return updateIn( |
| 94 | // @ts-expect-error Index signature for type string is missing in type V[] |
| 95 | collection, |
| 96 | [key], |
| 97 | notSetValue, |
| 98 | updater |
| 99 | ); |
| 100 | } |
nothing calls this directly
no test coverage detected