(updater: Updater<T>, input: T)
| 79 | /// |
| 80 | |
| 81 | export function functionalUpdate<T>(updater: Updater<T>, input: T): T { |
| 82 | return typeof updater === 'function' |
| 83 | ? (updater as (input: T) => T)(input) |
| 84 | : updater |
| 85 | } |
| 86 | |
| 87 | export function noop() { |
| 88 | // |
no outgoing calls
no test coverage detected
searching dependent graphs…