(fn: ListenerFunc)
| 24 | |
| 25 | type ListenerFunc = (...args: any[]) => void; |
| 26 | export function wrapWithEventSwitch(fn: ListenerFunc): ListenerFunc { |
| 27 | return (...args: any[]) => { |
| 28 | if (isGlobalEventOn()) fn(...args); |
| 29 | }; |
| 30 | } |
no test coverage detected
searching dependent graphs…