INNER CODE UNIT · TypeScript

parseBoolean

laxamentumtech/audnexus · src/config/performance.ts:21

function parseBoolean(value: string | undefined): boolean | undefined {
	if (value === undefined) return undefined
	const normalized = value.toLowerCase().trim()
	return normalized === 'true' || normalized === '1'
}

// ============================================================================
// Scheduler Batch Size
// ============================================================================

/**
 * Hard upper bound for SCHEDULER_BATCH_SIZE. Keeps memory bounded even when
 * an operator configures an extreme value, and stays within Zod 4's safe
 * integer range so config creation never throws.
 */
const MAX_SCHEDULER_BATCH_SIZE = 10000

// ============================================================================

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…