DebugSwitch
A handle to a registered debug switch.
Import:
import type { DebugSwitch } from '@mnaoumov/typescript-lib/debug-switches';Signature:
export interface DebugSwitch extends DebugSwitchDefinitionExtends: DebugSwitchDefinition
Properties
| Property | Type | Description |
|---|---|---|
| description | string | What the switch does, for a settings UI. (Inherited from DebugSwitchDefinition) |
| id | string | The unique id, namespaced by the library or plugin that owns the switch, e.g. typescript-lib:terminate-on-timeout.(Inherited from DebugSwitchDefinition) |
| isEnabled | () => boolean | Gets the current value. |
| isEnabledByDefault | boolean | The value the switch has until something sets it. (Inherited from DebugSwitchDefinition) |
| name | string | The human-readable name, for a settings UI. (Inherited from DebugSwitchDefinition) |
| setEnabled | (isEnabled: boolean) => void | Sets the value, notifying the onDebugSwitchChanged listeners if it changed. |
Links to this page: