(appId: string, fn: StashEventListener)
| 157 | * @returns A cleanup function that removes the stashing function when called. |
| 158 | */ |
| 159 | export function setStashFn(appId: string, fn: StashEventListener) { |
| 160 | stashEventListeners.set(appId, fn); |
| 161 | return () => stashEventListeners.delete(appId); |
| 162 | } |
| 163 | |
| 164 | /** |
| 165 | * Indicates whether the stashing code was added, prevents adding it multiple times. |
no test coverage detected
searching dependent graphs…