| 29 | } |
| 30 | |
| 31 | export interface ControlFunctions<ReturnT> { |
| 32 | /** |
| 33 | * Cancel pending function invocations |
| 34 | */ |
| 35 | cancel: () => void; |
| 36 | /** |
| 37 | * Immediately invoke pending function invocations |
| 38 | */ |
| 39 | flush: () => ReturnT | undefined; |
| 40 | /** |
| 41 | * Returns `true` if there are any pending function invocations |
| 42 | */ |
| 43 | isPending: () => boolean; |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * Subsequent calls to the debounced function return the result of the last func invocation. |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…