(value: number | undefined)
| 52 | } |
| 53 | |
| 54 | function clampDebounceMs(value: number | undefined): number { |
| 55 | if (!Number.isFinite(value)) return DEFAULT_DEBOUNCE_MS; |
| 56 | return Math.max(500, Math.floor(value ?? DEFAULT_DEBOUNCE_MS)); |
| 57 | } |
| 58 | |
| 59 | export function parseEmbeddingTrackerMode(value: string | undefined): "off" | "lazy" | "eager" { |
| 60 | if (!value) return "lazy"; |
no outgoing calls
no test coverage detected