(value: unknown)
| 20 | * or actual boolean values depending on configuration. |
| 21 | */ |
| 22 | export function coerceBool(value: unknown): boolean { |
| 23 | if (typeof value === 'boolean') return value |
| 24 | if (value === 't' || value === 'true' || value === 1) return true |
| 25 | return false |
| 26 | } |
| 27 | |
| 28 | // Diagnostic logging helper with timestamp and process info |
| 29 | function logLock(level: 'info' | 'error' | 'warn', message: string, data?: Record<string, unknown>): void { |
no outgoing calls
no test coverage detected