* Updates an item in the list. * * @param key - The key of the item to update. * @param newValue - The new value for the item, or a function that returns the new value based on * the previous value.
(key: Key, newValue: T | ((prev: T) => T))
| 138 | * the previous value. |
| 139 | */ |
| 140 | update(key: Key, newValue: T | ((prev: T) => T)): void; |
| 141 | } |
| 142 | |
| 143 | export interface ListState<T> { |
no outgoing calls