onDebugSwitchChanged
Adds a listener called whenever a debug switch’s value changes, in any loaded copy of this library.
Import:
import { onDebugSwitchChanged } from '@mnaoumov/typescript-lib/debug-switches';Signature:
function onDebugSwitchChanged(listener: DebugSwitchChangeListener): DisposableExParameters:
| Parameter | Type | Description |
|---|---|---|
listener |
DebugSwitchChangeListener | The listener. |
Returns: DisposableEx — A disposable that removes the listener.
Links to this page: