getDebugSwitch
Gets a registered debug switch.
Import:
import { getDebugSwitch } from '@mnaoumov/typescript-lib/debug-switches';Signature:
function getDebugSwitch(id: string): DebugSwitch | nullParameters:
| 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.