Skip to content

getDebugSwitch

Gets a registered debug switch.

Import:

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

Signature:

function getDebugSwitch(id: string): DebugSwitch | null

Parameters:

Parameter Type Description
id string The id of the switch.

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