Skip to content

getDebugSwitch

Gets a registered debug switch.

Import:

import { getDebugSwitch } from '@mnaoumov/typescript-lib/debug-switches';

Signature:

function getDebugSwitch(id: string): DebugSwitch | undefined

Parameters:

Parameter Type Description
id string The id of the switch.

Returns: DebugSwitch | undefined — The switch, or undefined if no switch with that id is registered.