(value: unknown)
| 1314 | const AUTO_MODE_ENABLED_DEFAULT: AutoModeEnabledState = 'disabled' |
| 1315 | |
| 1316 | function parseAutoModeEnabledState(value: unknown): AutoModeEnabledState { |
| 1317 | if (value === 'enabled' || value === 'disabled' || value === 'opt-in') { |
| 1318 | return value |
| 1319 | } |
| 1320 | return AUTO_MODE_ENABLED_DEFAULT |
| 1321 | } |
| 1322 | |
| 1323 | /** |
| 1324 | * Reads the `enabled` field from ncode_auto_mode_config (cached, may be stale). |
no outgoing calls
no test coverage detected