Skip to content

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): DisposableEx

Parameters:

Parameter Type Description
listener DebugSwitchChangeListener The listener.

Returns: DisposableEx — A disposable that removes the listener.


Links to this page: